Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Aborting a Flat Sequence (http://www.chiefdelphi.com/forums/showthread.php?t=126508)

jSoft 15-02-2014 14:52

Aborting a Flat Sequence
 
Hi everyone, I'm J.R., the programmer from rookie team 4918. I wanted to know if it's possible to abort a flat sequence mid-execution in labview. Thanks for the help!

plnyyanks 15-02-2014 15:04

Re: Aborting a Flat Sequence
 
No, there is generally not a good way to stop a structure mid-execution. If you find the the pressing need to do this, it may be better to implement your code as a state machine instead. This way, you can manually change the states yourself.

Greg McKaskle 15-02-2014 21:50

Re: Aborting a Flat Sequence
 
Aborting or jumping out of structures in procedural languages is convenient, but tends to cause bugs caused by uninitialized variables. In a data flow language, that is even less of a good idea. So the structures are required to identify a value for all ways to exit. The exit is generally quite controlled., no break or continue statements except. The solution is to make the downstream code be conditional.

Greg McKaskle


All times are GMT -5. The time now is 09:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi