Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple front panels

My problem VI consists of a Main UI where the operator can initiate tests. The tests are sub-vi's and I only need one of those active at a time.  However, there are some general routines that I have together in another sub-vi called from the Main UI.  I would like to be able to have one "test" sub-vi and the "general" sub-vi available at the same time in seperate windows.
 
Presently, I can do this by using the invoke node (VI) to use the run vi method and then fp.open with a seperate invoke node.  I use a functional global variable to keep track of whether there is a "test" sub-vi or a "general" sub vi active to limit each of those to one.  This works well in development mode, but not when the vi is compiled.  It sporadically gives an error when a test or general sub-vi is closed which kills the program in XP.  This error happens all the time in Win2k, so I'd like some insight into fixing it.
 
0 Kudos
Message 1 of 2
(2,587 Views)
What is the exact error that you are receiving? Also, are you familiar with the path issue when building VIs into executables? Recall that the path to a VI changes from ...\VIname.vi to ...\EXEname.exe\VIname.vi when the VI is built into an executable. Since you are calling VIs dynamically, you need to make sure that you are taking this into account when programmatically building paths to VIs.
 
Kind Regards,
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,556 Views)