LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pop-up window

Solved!
Go to solution

hello, 

 

another question for you all...

 

i would create a program that remember me in which way proceed to make a test...

 

i would that sometimes it appears a window that tell me "do it" and until i don't press ok i can't go to the next step...this many times with many windows with differents "post-it"

 

thanks

Using LabVIEW 7.1
0 Kudos
Message 1 of 9
(4,344 Views)
Solution
Accepted by topic author gigi85

What I understood is use want to pop up user with a message for user interaction.

One way of doing this could be to make seequential structure in which you want to start the test. and dialog vi for every structure. it will hang execution untill OK or canceal button is pressed on pop up message.

Labview user
0 Kudos
Message 2 of 9
(4,333 Views)

and dialog vi for every structure...? in which way...sorry but i'm new in labview

Using LabVIEW 7.1
0 Kudos
Message 3 of 9
(4,322 Views)

You may use such structures.

Labview user
0 Kudos
Message 4 of 9
(4,320 Views)

if someone could make me an example in labview 7.1 should be great...just a second window that appears if i press ok in the first one

Using LabVIEW 7.1
0 Kudos
Message 5 of 9
(4,288 Views)

OK...it works...but with a problem...if i press cancel it go to the next step in the same way as i press ok 😞

 

just a question...have I to link nothing to the output of two button dialog?

 

and if i want that in a specific case after i've pressed ok in the first window i want make a control...and only if true go to the next step? i have to join my true output to the next-button-ok?

Using LabVIEW 7.1
Message 6 of 9
(4,283 Views)

You got some really bad advice above. A long seqence with popups seems rather silly, especially since a sequence cannot be escaped easily.

 

Use a state machine and an single popup instance. Change the text according to the state and proceed to the next state according to the button that was pressed.

Message 7 of 9
(4,276 Views)

thanks...it works 🙂

 

i used 2 buttons dialog to have the choice to esc from while loop if i press ok 🙂 anyway it works 🙂 thankkkkssss

Using LabVIEW 7.1
0 Kudos
Message 8 of 9
(4,272 Views)
In the Core 2 class there's a series of slides that covers this exact situation. The solution that they call the "best" is to put a case structure around each dialog box function so you can bypass it if there's an error. When teaching, I point out that this is really the 2nd best solution. The discussion goes something like this:

"The difference between an amateur and a professional LV developer is easy to see. Amateurs write programs, professionals write toolboxes. By that I mean professional developers are constantly asking themselves, 'Will I ever need to do this again?'
"So ask yourselves, is this the only time you will ever want to suppress a dialog box when an error occurs? No, of course not. The best solution therefore is to create a VI that encapsulates the dialog box function and the case structure, and brings out controls for all the existing inputs on the dialog function. Now whenever you need to do this same thing again you don't have to waste time thinking about how to do it again. You have a reusable VI already made to do it for you.
"Work this way for a while and you will have a toolbox of hundreds of simple, reusable pieces that will let you do amazing things in an amazingly short period of time."

Of course the builtin function should already come with error clusters on it, but that's a rant for another day. I hope you have found these ramblings helpful.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 9 of 9
(4,270 Views)