07-10-2006 11:06 PM
07-10-2006 11:57 PM
07-11-2006 02:41 AM
float64 *data=NULL;
DAQmxErrChk (Read_AcqAndGraphVoltageExtClk(taskHandle,data,sampsPerChan*numChannels,&numRead));
ArrayToFile ("result1.dat", data, VAL_DOUBLE, COUNT, 1,
VAL_GROUPS_TOGETHER, VAL_GROUPS_AS_COLUMNS,
VAL_CONST_WIDTH, 10, VAL_ASCII, VAL_APPEND);
The code is from Help-Finder, if I write "data" to a file, error occurred. Whe the example does not give the dimension? Is there a default size? How to define a specified size to data? Thanks a lot.
07-11-2006 03:34 AM
07-11-2006 04:10 AM
The answer to this question is possibly COUNT keyword: NI examples frequently are hard-coded in that some parameters are defined as macros at the top of the source code. So, where is COUNT defined and which value is assigned to it?
@mwibm wrote:
float64 *data=NULL;
DAQmxErrChk (Read_AcqAndGraphVoltageExtClk(taskHandle,data,sampsPerChan*numChannels,&numRead));ArrayToFile ("result1.dat", data, VAL_DOUBLE, COUNT, 1,
VAL_GROUPS_TOGETHER, VAL_GROUPS_AS_COLUMNS,
VAL_CONST_WIDTH, 10, VAL_ASCII, VAL_APPEND);The code is from Help-Finder, if I write "data" to a file, error occurred. Why the example does not give the dimension? Is there a default size? How to define a specified size to data? Thanks a lot.
07-11-2006 04:23 AM