08-20-2018 02:37 AM
Hi,
I've two loops and just need to pass some values (say 3-4 values) from main loop to secondary loop only once. What is the best way to do it?
Thanks in advance.
Solved! Go to Solution.
08-20-2018 03:25 AM
08-20-2018 04:42 AM
How about using Queues?
08-20-2018 06:01 AM
@PadmanabanJ wrote:
I've two loops and just need to pass some values (say 3-4 values) from main loop to secondary loop only once. What is the best way to do it?
Please define "only once". Do you want the second loop to just use the latest value for a variable(s) that the first loop wrote or do you want to send a message to the second loop to update some state information? In the first scenario, I would use global variables. In the second scenario, I would use a Queue or User Event.