LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

app builder and dynamic VIs

I have noticed some strange behavior with the labview 6.1 application builder and dynamic VIs. First, no dynamic VI will work unless I do not remove the front panel for that VI in the build settings. Whenever I try to invoke the Run VI method I get "Error 15 occurred at Invoke Node. Resource not found." When I ensure that the front panel is not removed, the built application works fine. I know that the front panel is required for Set Control Value. But for simply running a GUI-free VI dynamcally, I don't see why it is required. Nowhere in the documentation could I find this mentioned.

On a related note, I am confused about what settings cause the app builder to decide whether to remove a dynamic VI's panel or not. For a VI with "default" win
dow appearance settings, the builder chooses to remove its panel. Customizing many of the default vi appearance properties causes the builder to include the panel. Why should unchecking "Window has titlebar" cause the app builder to include a VI's panel? I realize I can override the app builder's choice, but it would still be nice if it knew enough to include a front panel for every VI that needs it.

bb
0 Kudos
Message 1 of 3
(2,922 Views)
If the app builder is removing the front panels of VIs that you enter as dynamic VIs something is wrong. I build a lot of code with dynamic VIs and have never had to manually play around with the parameters to get the front panel included in the build. Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,922 Views)
It may be that you have set your dynamic VIs to "show front panel when called" which is not a default appearance setting and would cause app builder to include the panel by default. Some of my dynamic VIs were configured with default appearance settings and their panels were not included. The only method I invoke on these VIs is "Run VI." I never do anything like "Set Control Value." I prefer to communicate with the dynamic VIs via queues. So why is the panel required?

bb
0 Kudos
Message 3 of 3
(2,922 Views)