LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Called sub-vi not loaded in SubPanel once code is compiled.

Hello,

 

I'm currently having the same problem, but solved my path problems with path constant .. 

The thing is when I check "show front panel when called" the subVI is opened in another window and not in the main window ... have you got some ideas ?

Thanks 🙂

0 Kudos
Message 11 of 16
(892 Views)

Hello, did you try looking at the link I posted? http://decibel.ni.com/content/docs/DOC-15048
This link shows how I went about it using the SubPanel Container to embed a sub-vi on the main panel.

0 Kudos
Message 12 of 16
(876 Views)

Hey,

 

Yeah I looked your link,

I think I solved the step 3 with a path constant, but when I try to use the .exe on another computer it pop out in another window, when I'm using the .exe on my development computer the .exe find the .vi with the path and load it well ... (things it shouldn't do ...) 

0 Kudos
Message 13 of 16
(873 Views)

Ah okay, you'll have to play around a bit on how you strip your path then.  I'd suggest:

1) try using the Path Constant "Application Directory" instead of stripping away the paths from "Current VI's Path" constant.  Then append the path to your sub-vi you want to embed.

OR

2) using the "Current VI's Path" constant, as per my example, strip one more or one less case of the "Strip Path" and try compiling your code with the different variations.

 

One of those "stripped path" variations should work.  That is the tricky part of this example and getting it to all work accordingly on your development machine or a target machine.

 

Good luck!

Message 14 of 16
(866 Views)

Hey, 

 

I've tried it this morning and it works well 🙂

I don't know why yesterday it didn't work but night helps Smiley Very Happy

Thanks for your help !

 

Mathieu

0 Kudos
Message 15 of 16
(850 Views)

Place a static vi-ref instead, then it'll get automatically linked when building .exe. 🙂

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 16 of 16
(843 Views)