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: 

Acquire Two Data at Different Rate Using Timed Loop

Hi, I'm acquiring Temperature Data and Analog Data using Real-Time. I want to acquire Temperature data at a frequency of 5 Hz (200 mS - Period), and the Analog data at a frequency of 500 Hz (2 mS). I have this case structure in order for me to select what data I will be displaying on my Host VI. Can you tell me of a way to set the setting for my timed loop to achieve this setup. Here is a screenshot of my code
0 Kudos
Message 1 of 3
(2,745 Views)

False.PNG

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

Hi gijude,

 

simplest solution: use two loops: one for AI, another for temperatures!

 

I suspect it isn't a good the best idea to put network communication into timed loops used for better usage of determinism…

Best regards,
GerdW


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