Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

in my VIS i just want to use only one buttons for each purpose

In my VIS, i just want to use one start button(that i am using already in frame number 0).but i also want to use only one break button,one continue button and one stop button for whole program .in my existing current VIS, now every frame has one break,continue and stop button.this i want to avoid, because now if in frame number 1 i make one break local variable and pass this local variable to frame 2,3,4,5,6. the same if i do with continue button and pass the continue boolean variable to frame 2,3,4,5,6.the same if i do with stop boolean and pass local variable to frame 2,3,4,5,6,every frame of the sequence will be disturbed. i would like that every frame execute when its time of execution comes.
therefore i am using sequence.but passing variables like this will effect every frame.on the other side i just want one display of start, break, continue and stop buttons on my main user interface. without effecting the program how can i achieve this?
moreover i want to display an idicator on the user interface in which frame my application is executing.whether is it in frame 1,2,3,4,5 or 6. how can i achieve this?
thanks for your help.
0 Kudos
Message 1 of 3
(6,486 Views)
Dear Hood1,

for use only one controll buttom, use the customize controls. Start LabVIEW, create new and to choose custom control. When you save the control with the option "strict type def". The Value from one switch will be on all controlls.
For your second question I have created one examlple. Please look in the atteachment.

Hope this helps,

best regards.

SebastianN
0 Kudos
Message 2 of 3
(6,486 Views)
You might want to think about using a technique called 'state machine' programming. It's basically a case structure wrapped by a while loop where individual buttons activate a particular case (containing code you need to run). The default case is 'Idle' and just checks your controls to see if one has been pressed. I use this all the time. If you search the Zone, I'm sure you'll find examples of it.
0 Kudos
Message 3 of 3
(6,486 Views)