LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with the internal clock

 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?


Best Regards

Pellaeon
0 Kudos
Message 1 of 2
(2,330 Views)
@mod: please delete this thread, it's in the wrong board.
I don't know why my post is in this board, i had opend two tabs in my browser and posted in another board ?!?

0 Kudos
Message 2 of 2
(2,325 Views)