LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display a popup message while a loop is running

Can somebody give me some good ideas on how I could create a popup that will appear when a loop is running and then disappear when the loop is finished. I would also like to show a status bar in the popup.
0 Kudos
Message 1 of 4
(3,823 Views)
Hi,
You must execute this loop in subVI. Place your loop in subVI with "Show front panel when called" option selected. On the front panel of this subVI write your message and create the statusbar. Also you can create a progress bar connected to iteration index (i) of the loop.
Then call this subVI from main VI.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 4
(3,823 Views)
Hi,

I'd make a sub vi with a case in it. The case has three 'states': Show
Window, Hide Window and NOP (no operation). The sub vi must be a dialog, but
Show window when opend must be off.

The Show Window and Hide Window case should have vi property nodes (no
reference wired, to use it's own reference) with the 'show panel' property
set to true and false. The NOP case is empty.

Wire an enumerated to the case, and wire it's control to the connector pane.
Also wire a status control to the connector pane.

Put the sub vi before the while loop, with the Show Window option. The sub
vi will show (perhaps you also want to initialise the status indicator in
the Show Window case).

In the loop, put the sub vi with the status control wired to the actual
value, and NOP to
the window control.

When done (after the while loop, but be carefull about race conditions, )
put the sub vi with Hide Window wired to it. (Put the enumerated inside the
while loop and wire it through the while loop to the sub vi to prevent
this.)

Regards,

Wiebe.


"Terry S" wrote in message
news:5065000000080000008EA10000-1042324653000@exchange.ni.com...
> Can somebody give me some good ideas on how I could create a popup
> that will appear when a loop is running and then disappear when the
> loop is finished. I would also like to show a status bar in the
> popup.
0 Kudos
Message 3 of 4
(3,823 Views)
Hi Terry,

find attached an example - how it might be done..(LV6.1)

regards
Werner
0 Kudos
Message 4 of 4
(3,823 Views)