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.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

sample rate?

\cvi\samples\easyio\ai_samp.prj
When I run this program ,I set sample rate as 1000Hz,but the actual rate
show it is 400Hz.
I don't what happened.
0 Kudos
Message 1 of 2
(2,609 Views)
Shen,

The ai_samp.prj example uses software timing. Thus, the sampling rate is controlled by the interval of a software timer. Because this is a software-timed example, the accuracy of the sampling rate is system dependant. Furthermore, the maximum sampling rate is also limited by the execution speed of the software. If you want to use the Easy I/O functions, I would suggest that you take a look at the ai_async.prj or ai_acq.prj example. Both of these examples use hardware timing. However, the examples that use the "regular" NI-DAQ functions offer greater control and flexibility. They are available in the following location:

C:\Program Files\National Instruments\MeasurementStudio\CVI\samples\daq

Good luck with your application.


Spencer S.
0 Kudos
Message 2 of 2
(2,609 Views)