LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

One Button Dialog Via Digital Input

Solved!
Go to solution

Hello,

 

Had a question about the One Button Dialog Vi.  I have an application that I want to modify.  We have a physical pushbutton wired into a digital input board that when pushed we want to progress in the labview program.  Its only a momentary pushbutton though.  The way its set up now the user is told to push the start pushbutton and click OK on the one button dialog. See code.  The way its programmed they have to hold down the pushbutton and click OK.  Which works fine up till now.

 

We are changing the environment to give the operator the ability to operate the pushbuttons via a pendant when at the unit under test which means they will no longer be able to click the mouse.  This code is used in quite a few places...was wondering if there was a real fast way to change this so that the user wouldn't have to click OK to continue on in the Code. 

 

See attached!

 

Thanks

LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 1 of 5
(3,227 Views)
Can you not just remove the one button dialogue from your code? This would leave the false case with nothing to do, and therefore not interrupt the code.
Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 2 of 5
(3,221 Views)

Yeah but, the people that will be operating this need some sort of instruction of what to do.  Somehow I have to tell them at each step to do something.  Our employees don't like to think of on their own or remember test procedures without having someone hold their hand.  Its not something I can get away from.  If there is a better way to tell them to do something though I can change it if its got more functionality built in.

LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 3 of 5
(3,208 Views)
Solution
Accepted by topic author DL84

Put a large string indicator on the front panel.  Display the prompt in the indicator.  You can change the color or make it blink via property nodes, if desired.  Clear the indicator by writing an empty string when the external button is pressed.

 

you need to hide other parts of the front panel while the prompt is shown, you could use tabs the Visible property for the indicator.  A tab with only the prompt indicator can look much like a dialog or be customized in any way you want.  Make the tab a indicator (change it from control) and control which page is shown by simply writing to its terminal.  You can make some very versatile user interfaces that way with relatively little programming effort.

 

Lynn 

Message 4 of 5
(3,201 Views)

Hey...a message center...that is a really good idea  I've done some other stuff like that but didn't think to do it with a string indicator.

 

Thanks for the input bud, I think thats how I'm going to do it!

 

 

LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 5 of 5
(3,199 Views)