LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need a way to cut off part of a flat sequence structure with button on front panel

I need to be able to cut off part of a flat sequence structure with a button on the front panel. The entire sequence structure is not needed for all uses of the program, but I don't want to make to separate programs. The ideal solution would be a button that would control something like a while loop with a button, but I am not able to put it around just part of the sequence. Thanks
0 Kudos
Message 1 of 6
(2,879 Views)
well for one sequence structures are frowned upon and you could probably use a event structure inside of a while loop or use a state machine (such as a sequence state machine)
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 2 of 6
(2,870 Views)

Harold beat me to it and said exactly what most of us would say, but i made a screen cap so here goes... Can't you just wrap the code in a T/F statement?

 

seq.gif

Richard






0 Kudos
Message 3 of 6
(2,866 Views)
Thanks for the help. I am new to labview and open to advice. I am using labview to control instruments that perform switching (opening and closing conductive paths), sourcing current and measure voltage using two or three devices. I am using the sequence structure to ensure I don't source current when I have an open circuit and to align the interaction of the different devices. Please post and let me know if this is an appropriate circumstance to use the sequence structure or suggest another option. Thanks for your time.
0 Kudos
Message 4 of 6
(2,857 Views)

mmswanso wrote: 


...  I am using the sequence structure to ensure I don't source current when I have an open circuit and to align the interaction of the different devices. Please post and let me know if this is an appropriate circumstance to use the sequence structure ....


Not a scenario for a seqeuence, although it may seem to be for someone new to LabVIEW. You need a State Machine in my opinion.  Get one from the Templates when you start LabVIEW, and look at the examples.

Richard






Message 5 of 6
(2,853 Views)
I would say a state machine might be your solution if you search the forum you will see many examples of this architecture
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 6 of 6
(2,849 Views)