07-09-2014 03:46 AM
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)
Solved! Go to Solution.
07-09-2014 04:04 AM
You cannot transfer data between loops by wire. Search in the help for "Queue", you have some nice examples to make use of.
07-09-2014 06:11 AM
thank you for help
07-10-2014 01:15 PM
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