08-01-2016 04:45 AM
Try something like
uInt64 nofsamples;
void * value = (void *) (& nofsamples);
or allocate the memory dynamically
value = malloc( sizeof(uInt64);
08-01-2016 04:48 AM - edited 08-01-2016 04:56 AM
08-01-2016 04:53 AM - edited 08-01-2016 04:56 AM
08-01-2016 04:53 AM
Hello,
the solution for this problem was simply a &:
DAQmxGetWriteAttribute (taskHandle, DAQmx_Write_TotalSampPerChanGenerated, &value);
In the frist try I got a value of 4 but my array has 800 values. I do not know what it counts now. I have written the line after the DAQmxStartTask.
Best regards