LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub Panel not working in Exe file

Since you are dynamically loading VIs, they are not automatically included in the executable. After all, you're just providing strings.

 

Even though you're providing paths, the exe might very well not be able to load them. The VIs might depend on vilib items that are not available in the executable. Or the VIs don't have compiled code (if separate compile code is on).

 

I'd recommend using static VI references instead. There's no need at all for strings. They can introduce typos and problems like you have atm.

 

Alternatively, if you really, really want to use strings, add the VIs to the always include list of the build.

Message 11 of 18
(1,164 Views)

HI SIR

HERE IS MY MAIN VI

Download All
0 Kudos
Message 12 of 18
(1,161 Views)

Hi kps,

 

finally you attached some code, thanks!

 

What about that "there are no errors" observation?

You are deleting/clearing all error messages within your DynamicLaunch subVI!

 

(I cleaned up that subVI a little bit. There's no need to maximize frontpanel AND blockdiagram to full screen!)

 

So: implement a better error handling and logging to recognize/analyze such problems much easier…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 13 of 18
(1,144 Views)

Hi Sir

I removed those error clear pallet and tried again but now also the sub panel vi are not executing

it just display the front panel in sub panel

that vi not executing

0 Kudos
Message 14 of 18
(1,138 Views)
But now you should get some useful error messages in the error wire…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 18
(1,136 Views)

No error is coming 

0 Kudos
Message 16 of 18
(1,139 Views)

@kps001 wrote:

Hi Sir

I removed those error clear pallet and tried again but now also the sub panel vi are not executing

it just display the front panel in sub panel

that vi not executing


So you removed the clear error... Hope the error is rewired?

 

Without updated code it's hard to tell.

 

Have you replaced the strings with static VI references?

Have you added the VI to always include list?

 

Without something we can actually compile, we can't really tell.

0 Kudos
Message 17 of 18
(1,126 Views)

@kps001 wrote:

No error is coming 


Errors are not "coming" automatically. Even if you enable automatic error handling, if the error is wired to a structure, I don't think you'll get an error.

 

You'll have to wire a simple error dialog to all end points of errors, or put all errors on the FP. Otherwise you might not notice the errors at all. 

0 Kudos
Message 18 of 18
(1,123 Views)