Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

cRio scan engine can not perform higher than 500Hz

I am using NI9201 voltage module to collect data from 7 channels. Ultimately, I want to run the cRIO at 1kHz to collect ~1000 samples/sec. I am using a synchonized timed loop to get point-by-point mean in the high-priority loop and display the mean every second in the low-priority loop. I am using a counter to determine the number of scans per second and the maximum I can get is 500. When I set the scan period to 2ms, I get 500 scans, but when I set the scan period to 1ms, I still get 500 scans. What is causing this problem?

 

I have attached my code.

0 Kudos
Message 1 of 2
(5,431 Views)

When you move your period down to 1 ms have you tried wiring a boolean indicator or variable to the Finished Late? Output of the Left Data Node of the Timed loop? You might consider moving the Mean VIs to the low priority loop. Since a Timed Loop executes in a single thread everything has to completed in serial so these VIs may be slowing you down.  

Miles G.
Emerson Test & Measurement Group
Senior System Support Engineer
0 Kudos
Message 2 of 2
(5,401 Views)