02-04-2015 06:56 AM - edited 02-04-2015 07:01 AM
Hello
I want control 2 while loops. a variable in first loop should control second loop and a varieble in second loop should control first loop.
(frist loop is controlled by a variable in second loop and second loop is controlled by a variable in first loop simultaneously).
How can I do it? Can I use global variable to use in one VI (control two while)? please explain.
Best Regards.
02-04-2015 07:12 AM
That completely depends on what the loops are doing. Do you care about every data point that is sent between the two loops? Are the loops supposed to wait for their control variable?
02-04-2015 07:18 AM
yes, we have wait or time of 2 while are diffrence. and maybe I need to all data produce in two while.
Best Regards
02-04-2015 08:27 AM
If you have to wait for the new data to come in, then use a Notifier or a Queue. A queue is a FIFO, so you can process each sample that is transferred. A notifier only keeps the last value.