LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pause the main program and resume it the first sequence again?

I am building the main program. How do I pause it in case of activated emergency button or errors? Once the button is deactivated and errors are corrected, I need to resume it again at the first sequence, like reset, not close the program. How to do it?
0 Kudos
Message 1 of 3
(2,746 Views)
Hello astroboy,

you have to program it...
A construct like "if not(error) then continue else startover" could help. Also the error cluster and its use in (nearly) all communication VIs can help you. And it could help to connect such error cluster to a case structure...

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,745 Views)
In addition to what GerdW said, this would be much easier to do if you were using a state machine rather than a sequence. If you aren't familiar with state machines here are some links (the second might be particularly interesting to you).

http://zone.ni.com/devzone/conceptd.nsf/webmain/C74CEC177A289DBD86256C4E00600196?opendocument

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CB989111EE034080020E74861&p_node=DZ52076&p_source=External

Regards,
Ryan K.
0 Kudos
Message 3 of 3
(2,745 Views)