LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

main VI and subvi indicator

Hi,
My sub-VI outputs 10 different things, 4 things at a time. It has a continue button that blinks when one set of output is finished, and the sub-VI will continue after the user clicks on this continue button. Right now I am writing a main VI that will control this sub-VI along with some other sub-VI. I have an input and output cluster in my main VI to send and receive info from the sub-VI. But I am having a problem with making this continue button works. In my output cluster in my Main VI, I have a continue button just like the one in my sub-VI. In my sub-VI, I have a "blink yet?" indicator to indicate when the program has finished taking a set of data. In my Main VI, I use get control value method to set the blinking property of
the Main VI's continue button. This button blinks fine, but when it blinks, I cannot click on it to change its value, does anyone know why or know of a better way to do this?
Thanks.
0 Kudos
Message 1 of 3
(2,655 Views)
Hi,

It sounds like you almost want to use this continue button as both an indicator as well as control. Unfortunately, LabVIEW does not allow both. To work around your issue, use the continue button as an indicator and have it blink when the output of the subVI is finished. Then, use an event structure to take in when the user clicks on the button. When the continue button is pushed, then use a property node to then set the continue button to stop blinking.

The following tutorial should be useful:
Event-Driven Programming in LabVIEW

Also, I have attached an example program that demonstrates using the event structure in LabVIEW with a boolean.


Good luck!

Kileen C.
Applications Engineer
National Instruments
Message 2 of 3
(2,655 Views)
Thanks
😄
0 Kudos
Message 3 of 3
(2,655 Views)