Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

Outer loop stops when control used in a sub vi.

My Daq vi consists of a main outer loop with sub VIs for the user interface, AI/AO, DI/DO,etc... The problem comes when a control is used in the interface vi, the outer loop stops. If the User interface diagram is copied into the main loop and the interface vi deleted, the problem goes away. I have attached a simple example of the problem.
0 Kudos
Message 1 of 3
(3,559 Views)
I've played around the with the example VI and haven't found a way to keep the outer loop from stopping by using property nodes. The only way I found to solve the problem is to create another loop in the main VI and have that loop contain the sub VI with the slide. Take a look at the modifications (Labview 6.0.3)

Hope this helps,
Victor Lyuboslavsky
National Instruments
0 Kudos
Message 2 of 3
(3,559 Views)
I hope this solves your problem. I moved the call to the slider subroutine to a parallell slave loop. When the slider is pushed, the master loop still runs even if the slave is paused. When the slider is released, the subroutine index is updated from the master loop.

The loop index is written to a local variable in the slave loop. The stop output from the slider subroutine is written to another local variable which stops both loops. The stop button is programmatically reset.

After Gary W. Johnson and Richard Jennings "LabVIEW Graphical Programming" Third Edition p 127
0 Kudos
Message 3 of 3
(3,559 Views)