Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

ai sample clock

Hi, if I initialize a DAQmx analog input channel and specify the sample time to be continuous at 10 Hz, and then I put a DAQmx analog waveform sample VI in a while loop, does this mean that the while loop will be executed at a rate of 10Hz?

Thanks!
0 Kudos
Message 1 of 2
(2,872 Views)
If by "DAQmx analog waveform sample VI" you are referring to a DAQmx Read VI, then the answer to your question is: it depends on what you have as the 'Number of Samples per Channel' input to the DAQmx Read VI. If you have it set to 1, then your loop will iterate at ABOUT 10 times a second. If you had it set to 10, then it would iterate at about once per second, because the DAQmx Read will wait until it has all the samples you ask for. Keep in mind that it probably won't be exactly any certain frequency, because the speed the loop executes is still ultimately determined by Windows (or whatever operating system you are using).
-Alan A.
0 Kudos
Message 2 of 2
(2,863 Views)