LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front panel popping up during refresh

Hi,

I wrote a control program for one of my experiments where I have different subVIs for showing the data read from DAQ,plotting those data and controlling different equipments. While running the program runs quite well except for one little annoyance. The way I want the program to run is to have all the front panels open up while loading the program, but I should have the control to minimize and maximize the wondows depending on what I want to do.So for each of those subVIs I went toVI properties and set it to Show Front Panel when Called and did not check close if previously closed. What it does then is to pop up each of the window when it is called each time, so I cannot do anything on another window. I tried unchecking when called option and checked ShowFront panel when loaded, but then it would not open the VI at all. I have to manually go an open the VI. Could someone give me a suggestion on what I should do to avoid this problem?

 

Thanks

Sankar

0 Kudos
Message 1 of 4
(3,084 Views)

Hi Sankar,

      Instead of using "show when loaded", try using a "property node" on each diagram to open the front panel.  If the panel is already open, don't open it! ;^)  There's also an FP "invoke node" option - setting Activate? to False seems to leave panel in background.

 

The property and invoke nodes are on the "Application Control" palett.  You can wire a VI Server Reference to them, or right-click on the upper-left corner and select-class "VI".

 

Property-nodes open-up a world of programming possibilities!

 

Have fun!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 2 of 4
(3,061 Views)

Thanks Tdb,

That solved the problem. However your suggestion about invoke node was not clear to me. I tried to invoke node and set activate to false. I was not able to find activate in the invoke node when I wired the reference of my VI to the invoke node object. Any ideas?

 

Thanks

Sankar

0 Kudos
Message 3 of 4
(3,032 Views)

Hi Sankarnkp,

 

Activate isn't listed when you left click on the invoke node. What you need to find is Front Panel » Open.  Take a look at the screen shots to navigate to the correct method. First, right click on the upper portion of the invoke node to navigate to Select Class » VI Server » VI » VI. Then left click on the lower portion of the invoke node and navigate to Front Panel » Open. You will now see two methods you can change: Activate and State.

 

 

0 Kudos
Message 4 of 4
(3,017 Views)