LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make the exchange of data between 2 while loop in real time

Solved!
Go to solution

hello
I have 2 while loop
the 1st while loop includes the data acquisition program
the 2nd while loop includes the control program
-------------------------------------------------------------------------------------------------------------- 
my question is how to make the exchange of data between 2 while loop in real time

--------------------------------------------------------------------------------------------------------------
I tried with the local variable and direct wiring between the 2 while loop
it does not work (there is a delay)

0 Kudos
Message 1 of 4
(2,316 Views)
Solution
Accepted by bilalus

You cannot transfer data between loops by wire. Search in the help for "Queue", you have some nice examples to make use of. 

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 4
(2,307 Views)

thank you for help

0 Kudos
Message 3 of 4
(2,287 Views)

Bilalus,

 

Queues are only good to transfer data if your application isn't deterministic. Since you are using Real Time, I am assuming that your application requires determinism. If you are using Timed Loops and you use queues to transfer data between your loops, you are losing determinism. In this case, you need to use the RT FIFO functions. 

 

Warm Regards,

William Fernandez
Applications Engineering
National Instruments

0 Kudos
Message 4 of 4
(2,241 Views)