ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

what is the most common way to quit application ?

Solved!
Go to solution

hello labview users !

i have several loops running in parallel. some of the loops are events structure , each includes 100 ms timeout event.

all the stop terminals of the loops are connected to a local variable named Stop_All. is this the way ?

i don't know how else should i terminate the program.

please your kind help !

 

0 Kudos
Message 1 of 3
(2,419 Views)
Solution
Accepted by topic author hookso

Hi hookso,

 

common ways are:

- using a local (or even a global) variable

- using the "quit" function (quick&dirty)

- using a notifier/queue to send a quit command to your statemachine

- using a functional global variable (FGV)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,417 Views)

All the loops with event structures don't need any local variable or stop button terminal, a stop event tied to the stop button is sufficient. Place the terminal of the stop button inside the loop without event structure. That should take care of most loops. 😄

 

What is the purpoise of the timeout events? Are they really needed?

Message 3 of 3
(2,411 Views)