I have a question from you guys.
Assume that I want to write a program to control a set of hardwares by sending commands via serial port
Actually it calls a "Cycle". Because a series of specific commands will send via serial port in a specific time only once. I call this a one time Cycle.
Between each sending command steps there is a certain delay (Wait in Timing palette) . The attached is part of my VI.
I was wondering How can I embed a Cancel Button which is capable of acting in any frame of Flat Sequence Structure?
As you can see there is not any while loops to have better control of program because I want to execute series commands only one time.
So where to put "Cancel" Button in frames ?
I want to show a confirmation message when the user clicked Cancel Button and if the response was "YES" LabvIEW stops executing Flat Sequence Structure and the specific Cancel procedure (which is not included in above VI) occures . Else (by clicking "NO") program keeps running ...
Note that attached is just a simple version of what I'm intending for
For example in some Frames there wil be a while loop and so on ...
But there will be only on flat sequence at all
Excuse me for my poor english
Solved! Go to Solution.
general answer: Convert your flat sequence into states of a proper state machine!
Now you can check your "Cancel" button after each state gets processed...