LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using one vi to serve as a main menu with buttons that open sub-vi's: Problem with closing said sub-vi's, since I use .vit files, it prompts me to save upon exit of each subprogram

I have found the problem, but it is not a problem I've been able to puzzle out.

I have two methods of opening a file, one is your way, with the full path. Then there is my way which gets the current path, removes the name of the file being executed from the path, then appends the rest.

In development mode, where they both work, I get:

C:\WINNT\Temp\app\data\dobbs-rpcm-1553.vit

C:\WINNT\Temp\app\data\dobbs-rpcm-1553.vit

for the path names. I suspect that the name stripping function does something funny at run time. I'll look around on the developer zone posts and see if I can figure out how to get it working. But I've pretty much got things working.

-Dobbs
0 Kudos
Message 11 of 13
(519 Views)
At long last I've got it. You have to strip path twice at run time... I guess the current path is treated as:

C:\WINNT\Temp\app\1ck.exe\1ck.vi
0 Kudos
Message 12 of 13
(519 Views)
I have seen all your discussions.I think i'm also struggling with same problem.please help me.
From my main vi i'm trying to open some of my sub vis.The thing is i want all of them to be displayed at a time.
The problem i'm getting is only one is coming to the front and the other opened vis are running at the back.
Download All
0 Kudos
Message 13 of 13
(519 Views)