LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Equivalent to calling a function in labview

Hi,

 

I don't use Labview regularly and would appreciate some advice for what is probably a straightforward problem! If I have one process started and running in a while loop, how can I start and run a second process in another while loop while simultaneously stopping the first while loop? For example, I have a button which when pressed turns on an indicator. When a second button is pressed the first indicator goes off and the second goes on simultaneously.

 

Thanks for your help.

 

 

 

0 Kudos
Message 1 of 2
(2,236 Views)

Nested Loops?

 

Loop.png

 

Edit to add: This is not the equivalent to calling a function like in C. The equavilant to calling a function in LV is to make a sub-vi. The sub-vi would be the same as a function. Place the sub-VI on another (higher level) block diagram and wire to it is like calling that function.

0 Kudos
Message 2 of 2
(2,226 Views)