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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO scan mode high speed sampling

I'm trying to sample data at 200 Hz during some few seconds, see below. When I'm not in need of the data, the loop goes at 2 Hz.

The hardware is a cRIO-9074. Problem is that the CPU goes at 100% during sampling. I have tried storing to file instead of these

FIFO Shared Variables, but with the same results. The Scan Engines Scan Period is set to 5 ms.

When I'm not logging, CPU is at about 25%. See attachment for source code.

Anybody got good suggestions about trimming the system, or other ways to dealing with the problem ?

Martin

 

 

0 Kudos
Message 1 of 2
(2,258 Views)

Hi Martin,

 

the cRIO ScanEngine is not the best when it comes to "high-speed DAQ"...

 

Additionally you're dealing with a lot of network-shared variables. Both parts of your VI take their time and will limit iteration speed (plus take their share of CPU time).

 

You can:

- use parallel loops for DAQ and network access

- limit the number of SVs by combining your DAQ data into an array or a cluster. Using a cluster you can also include timestamp data in it...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,246 Views)