Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66648

Dynamically Launch VI Runtime vs Development environment

$
0
0

 

Problem: When I dynamically launch a VI in runtime environment, the front panel loads but the VI does not run.  However, it works propertly in the development environment.

 

 

 

Background:  This is part of a larger Vi that is basically a menu that launches other applications (executables, other menus, VIs, etc.).  The menu and all of its settings are populated at run time from a database I maintain.  For the dynamically launched VIs, I either launch them in a subpanel or stand alone.  I have attached the block diagram of the subVI that launches my VIs.  In it, I first parse out all of the settings passed through from the main VI, create a reference to the VI that will be launched.  Next, if it is to be launched in the subpanel, I insert it into the subpanel then center it based on its and the subpanels sizes.  Next I check if the VI is already in memory, if it isn't I run it then activate the FP.  If it is in memory, I check if it is running, if it isn't I run it. 

 

The subVI is a prototype and I am aware it right now doesn't have great error handling, most of the error handling is done in the main VI but I know I should add more  in this subVI as well. 

 

 

 

When I run my program in the development environment everything works fine.  When I create an executable, I run into issues.

 

 

 

I include the dynamically launched VIs in my exe build's 'always included'.   When I launch them in the subpanel, there is no error and the FP is loaded but the VI doesn’t run.  When I launch them outside of the subpanel the dialog box where subVI are being loaded pops up very briefly, then disappears, and nothing else happens.  The exception is if I use an extremely simple test vi (a while loop with a stop button) it runs properly. If I add any complexity to the vi, (e.g. add a single sub vi) it no longer works in the runtime enivironment.

 

 

I need to be able to run the main Vi as an executable in order to deploy it.  Any ideas what my problem might be?

 

 


Viewing all articles
Browse latest Browse all 66648

Trending Articles