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.