LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pop-up window for for loop in process

I have a for loop in a case structure, taking some time to complete. I want a pop-up window just show "Please Wait, it is in processing". When the for loop is done, the pop-up window is close.
Is any sample for doing this? or any advise t odo this. Thanks
0 Kudos
Message 1 of 5
(3,372 Views)
You could go the route of a pop-up window, but I wouldn't recommend it.  You can't programmatically close the built in message boxes, and they have strange consequences for the dataflow (ie. Don't behave exactly as you would expect), as well as you need the user to click on it to make it go away.

You could make a pop-up vi, but you'd have to make it reentrant in order to have the rest of your program running while the vi runs, and it would add a few complications.

I have used the method in the attached vi a few times for things like this.  You can show and hide the indicators only when the loop is running too if you like.

Hope it helps.
0 Kudos
Message 2 of 5
(3,368 Views)
Or you could just use a progress bar that pops up on your front panel.(see example)



Joe.
"NOTHING IS EVER EASY"
Message 3 of 5
(3,354 Views)
Another method is to create a string indicator of the desirable size and font on your front panel.  Place the indicator where you would want your pop up to appear.  In your code, make the indicator invisible (wire false to visible property node).  When you want it to pop up, wire a true to the visible property node, and a false when you want it to go away.  You can even create a custom control with a string indicator and a decorative box around it.  Use this custom control like a normal string indicator, manipulating the visibility property.  Don't forget to make the current value default after you type in your string.
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 5
(3,345 Views)
This is great. I just modify a bit. It works perfect. Thank you very much.
0 Kudos
Message 5 of 5
(3,337 Views)