LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

window popup doesn't open in a build .exe application

Hello. I wrote code in order to open a VI as a windows popup.

Running it in labview, it works fine. If I build the application (host side) and I run it in windows (win 7) it doesn't open any popup.

I'm sure that:

 

1) both the main and popup VIs are included inside the source files during the build steps.

2) the popup is not running behind the main window.

3) popup VI window appearance is "modal"

 

Here my code:

 

openpopup.PNG

 

Does anyone know what to do?

thank you

 

fpia

0 Kudos
Message 1 of 7
(4,212 Views)

I suspect you are building your path information incorrectly. I would start there to verify your path is correct in the built application. Also, just to clarify, you placed your dynamic VI in the Always Include section of your build spec, correct?



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 7
(4,206 Views)

I wonder if the popup VI has its front panel removed during the build process.  See the "source file settings" for that VI.

 

Also, you should put some error handling in your code.  Eg pop up a dialog if an error occurs (Simple Error Handler.vi).  that way you can find the exect error that is ocurring.

http://www.medicollector.com
0 Kudos
Message 3 of 7
(4,194 Views)

Thank you Mark and josborne.

 

It seems all you suggested me it's ok. I mean:

 

The path of my VIs are correct. I selected the startup VI (and I can see it inside this section) and in "Always Included" section there is the right VI popup.

The front panel is not removed from the VI popup. I can see it in the "source file settings" section.

 

josborn, I tryed to put error handing in my code, and I got some errors but I think thery are unuseful in my specific case. Here they are:

 

________

Built Application or Shared Library (DLL): Make sure all dynamically loaded VIs were properly included in the build specification for the application or shared library.
LabVIEW Real-Time: VIs built into executables cannot be accessed through VI Server calls. Use Source Distributions to dynamically call VIs on Real-Time targets.

___________

 

I got this error from the "Open VI reference" function. But...

 

About the first line, I'm sure all the involved VIs are included. I see the VI caller as "Startup VI" and the VI popup as "Always Included".

About the second line, I'm not testing it with a Real-Time target. I'm running this simple project just in a windows 7 environment. Anyway my VI server is running and setted in according with NI documentation.

I attach the project. Could you please be so kind to give a glance to it? It is very small and simple.

 

Thank you.

 

fpia

 

0 Kudos
Message 4 of 7
(4,170 Views)

I am also having the same problem did anyone find a way of calling a popup window from a created .exe?

0 Kudos
Message 5 of 7
(3,885 Views)

Please upload your project and all dependencies zipped up into a single folder, you do this by right clicking Build Specifications >> New >> Zip File. Also, please tell us where you try to call the VI from (in which VI). I'm on LV 2012 so if you are using newer than that you will have to go to File >> Save for previous... in order for me to look at it.

0 Kudos
Message 6 of 7
(3,879 Views)

I have just solved the problem, the popup vi must be loaded as a static not dynamic Vi. Thanks for the offer of help though, I appreciate it . 

0 Kudos
Message 7 of 7
(3,872 Views)