From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

sampling rate not respect with 9401

Hello,

I have an cDAQ 9178 with the 9401 on slot 2 and 9205 on slot 6.

 

I want to acquire the counter CTR1 synchronized with the AI clock of the 9205. To do that I use the DAQmx Timing and the DAQmx Read.

 

But, if I set 1000 S/s and 40S, I don't receive the Samples and the number of available samples increase until I received an error.

If I set 1000S/s and 2x40S=80S it works properly.

 

Why?

0 Kudos
Message 1 of 2
(3,938 Views)

You are acquiring 1000 s/S/ch with a period of your app of about 36 mS and acquiring 40 S. You are executing everything on windows. Are you sure that your app can keep up with the pace?

Try to look at the loop cycle and decrease it. Acquiring 80 samples enables you to be sure that the buffer stays empty.

 

Regards.

 

0 Kudos
Message 2 of 2
(3,746 Views)