LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub.vi shrinking Main.vi

I have a main.vi which 'does' everything, and a sub.vi which displays
a simple multi-line string of status information (for some old-folks
here who need the security of a dumb ascii display). What I would
like to do is have the sub.vi panel be able to shrink the main.vi
panel to the toolbar. With the refnum approach, I can get the sub.vi
to CLOSE the main.vi, which shuts it down and is not thereby useful;
especially because main.vi is not restartable from the same refnum.

How do I (if at all) from a sub.vi cajole the main.vi to close/reopen
its window without shutting down its run state? GH
0 Kudos
Message 1 of 5
(3,076 Views)
Assume you have in sub.vi refnum of main.vi.
In refnum properties select Front Panel Window\Open. Set it to false - it will set main.vi Front Panel unvisible. Set it to true and it will be visible.
0 Kudos
Message 2 of 5
(3,076 Views)
nchernin wrote in message news:<5065000000050000004B790000-1021771306000@exchange.ni.com>...
> Assume you have in sub.vi refnum of main.vi.
> In refnum properties select Front Panel Window\Open. Set it to false -
> it will set main.vi Front Panel unvisible. Set it to true and it will
> be visible.
Actually tried this before I posted here. The main.vi window closes
and the main.vi shuts down using this method. I need main.vi to stay
alive generating data...
0 Kudos
Message 3 of 5
(3,076 Views)
Look attached example.
0 Kudos
Message 4 of 5
(3,076 Views)
Hi all.
There is a LabVIEW library of Windows API calls. One of the commands is minimize. I think the .llb works well and is well documented. Goto www.ni.com and enter windows api function utilities 32 in the search bar.

Jeremy Braden
National Instruments
0 Kudos
Message 5 of 5
(3,076 Views)