09-03-2013 07:42 AM
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 🙂
09-03-2013 11:46 AM
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.
09-03-2013 11:56 AM
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 ...)
09-03-2013 12:09 PM
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!
09-04-2013 03:07 AM
Hey,
I've tried it this morning and it works well 🙂
I don't know why yesterday it didn't work but night helps
Thanks for your help !
Mathieu
09-04-2013 05:31 AM
Place a static vi-ref instead, then it'll get automatically linked when building .exe. 🙂
/Y