LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop application from hanging

I'm new to LabVIEW.  I'm trying to run an application that will wait for a trigger event from a scope before capturing a waveform.  However, while in waiting mode (infinite), my application hangs.  What do I need to do to prevent this from happening?  I believe I should set up some kind of thread, but I'm not sure how to do that using LabVIEW.  Any help would be greatly appreciated.

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

Threads are easy in LabVIEW. You just need to put your code in a while loop. Any other code goes in another while loop. If the while loops are not nested (one inside the other) and you do not have an output wire from one loop going to the other loop, then the loops will execute in parallel.

=====================
LabVIEW 2012


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