LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Have a program in which a sub vi front panel pops up when the main vi is loaded

Solved!
Go to solution

I have a strange problem. 

 

  • This problem only occures after building an application using LV 8.6 Professional version Application Builder, and I have installed it onto the target computer. It doesn't happen when running the development system. 
  • When I load the program on the target computer, one of the subvi's front panels used in the application appears on top of the main vi's front panel. 
  • This subvi should never appear on the front panel at any time during the program exicution.  
  • It happens to be the Write to Spreadsheet.vi that is part of the standard vi library. 
    • I have checked all calls to this subvi to verify that it has not be modified to make it load or appear when the main vi is loaded.
    • It is called at 4 different times during the program exicution but in no instance is it set to show the front panel.  

 

Has anyone seen this and if so what was the fix?

0 Kudos
Message 1 of 8
(3,362 Views)

Does the exe file run on your development computer without the popup?

 

Can you post a VI that demonstrates this behavior?

 

You've probably already checked, but there are two places that need setting, the SubVI Node Setup, and the File Proeprties Execution tab. See attached jpegs.

Message Edited by Pablop on 09-02-2009 02:20 PM
~~~~~~~~~~~~~~~~~~~~
Paul Johnson
Renco Encoders, Inc
Goleta, CA
~~~~~~~~~~~~~~~~~~~~
Download All
0 Kudos
Message 2 of 8
(3,356 Views)

Yes, it also pops up when I run the .exe on the development computer.

 

And, yes I have checked the SubVI Node Setup, and the File Properties Execution tab. Both have the proper settings. I also checked the modal setting to verify it is off.

 

Can not post vi because it is a proprietary program.

0 Kudos
Message 3 of 8
(3,344 Views)

What about the File Properties Window Appearance Customize Window Appearance? Just a long shot.

 

 

~~~~~~~~~~~~~~~~~~~~
Paul Johnson
Renco Encoders, Inc
Goleta, CA
~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 4 of 8
(3,339 Views)

I had checked the "File Properties Window Appearance Customize Window Appearance" also. 

 

I had edited the "Write to Spreadsheet.vi" to have "Error In" and "Error out" connections on the connector pane. Because it was a polymorphic vi I had to edit all 3 morphs of the vi. I checked the "File Properties Window Appearance Customize Window Appearance" for all 3 to varify that none had been changed to show front panel.  

0 Kudos
Message 5 of 8
(3,304 Views)

I'd rather assume that you changed the VI Properties in your build script. You can override certain VI Settings in your build script in the tab "Source File Settings".

One of the options changeable here is "show frontpanel when called".

Please check your build script for changes in this regards. 

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 8
(3,298 Views)

Norbert,

 

Thanks for the suggestion. 

 

I checked the build script under "Source File Settings".  First, the "Write to spreadsheet.vi" isn't listed. Only the main vi shows up along with a icon for "Dependencies".

 

There is a check box for dependencies titled "Set VI properties for all contained items". I checked that box and the popup button labled "Customize VI Properties.." became active. I clicked on it and a popup window appeared which contained settings for many settings including "Show front panel when called". I unchecked that property to disable it and rebuilt the application. No change, the subvi still appears when the main program is loaded.

0 Kudos
Message 7 of 8
(3,290 Views)
Solution
Accepted by johnfr
Problem resolved.  I copied the Write to Spreadsheet.vi from another computer.  I then went into the program and replaced that vi at each place it was called.  Now the program works as expected.
0 Kudos
Message 8 of 8
(3,267 Views)