LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control of two simultaneously running loops

Solved!
Go to solution

Hello,

 

My measurement requires two running instances, each runs in its own while loop embedded in an event structure (used to trigger the action).

In my particular case, I trigger one process in the while_loop1, this should trigger loop2 (initiates my detector and keeps it open until loop1 is ready).

The simplified problem is illustrated in the attached image; I can´t trigger loop2 from within loop1, although switch 2 is activated using the local variable. I essentially do not get the message2 if triggered in loop1. Any idea how to do this??

 

Many thanks in advance,

 

Steffen

 

Download All
0 Kudos
Message 1 of 3
(2,631 Views)
Solution
Accepted by topic author rileks
Writing to a local variable does not fire an event. This has been discussed countless times. Write to the Value (Signaling) property. Use a single event structure with multiple events and add an event for the stop button.
Message 2 of 3
(2,629 Views)
Thanks a lot for the info!! Works fine now...
0 Kudos
Message 3 of 3
(2,593 Views)