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: 

Accessing same ADC channels via fpga node in two different while loops

Hello all;

Is it possible to access same ADC channel in two different independent loops, in higher priority timed loop I need to make some decisions and also need to execute the PID to maintain the output? while in other lower periority while loop i need to log data that is comming from adc channels through FPGA.
thank you. 

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

Typically, you'll see data acquired from the FPGA in the higher priority loop and then passed to other loops (such as logging) using RT FIFOs.

 

I'm guessing you're using CompactRIO, so I would recommend looking at the CompactRIO Developer's Guide, particularly the Interprocess Communication pages in section 1, which outline best practices for sending data to different loops in a Real-Time VI.

Message 2 of 2
(1,983 Views)