Hello,
I need to read samples with approximately constante time difference.
I found the example ContAcq-IntClk.c and changed it a little bit and it seems that it work.
But when I use a DAQmx_Val_FiniteSamps with a given count of reads than the last two values will be read to the same time!
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",1,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps ,4));
DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_Val_Acquired_Into_Buffer,1,0,EveryNCallback,NULL));
DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,NULL));
E.g. the third and fourth value are read to the same time when I print also the current time in the callback function.
Is this a bug?
Regards
Pellaeon