LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stopping a paralell loop

basically all you are doing is stopping the vi and not properly shutting down your program or your equipment..Smiley Indifferent

 

Caveats and Recommendations when Using Events,and look at NI LabVIEW 101

 

 

try posting your VI, so that we can understand exactly what's going on...

Message 11 of 14
(673 Views)

In the VI I posted, the string "STOP" signifiys me (trying to) shutting down the equipment properly.  I use stop labview just to show what I am trying to do.  Let me ask my question differently:  is there a way to interupt the main state machine loop to power down and close equipment handles and end the program (and NOT resume the main loop)?

0 Kudos
Message 12 of 14
(659 Views)

A state machine can be that flexible ONLY if each state in the machine executes in the shortest possible time.

 

ALways strive to get states at their bare minimum in terms of what they do and how long it takes to do it.

 

For query states or any state depending on an external resource (like a com port) the

timeout should be split up or made as short as possible.

 

By doing this your state machine will have more control over events and will respond more quickly.

 

Most hang ups are avoided by designing states carefully in the user interface part of it.

 

SOrri I could not be more specific in helping.\

 

 

 

 

0 Kudos
Message 13 of 14
(616 Views)

It should also be noted that you may need to insert an emergency stop at teh front of the queue. You want to force it to be the next action to occur.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 14 of 14
(603 Views)