LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve top level filename programmatically

Is it possible to retrieve the filename of the toplevel vi (that runs and is in memory)programmatically?

For example, if the top level vi is called "My Program.vi", I would like to get this name in my program for saving purposes etc. I could type in "My Program.vi" in a string, but sometimes I give the top level vi a different name, like "My Program revision 2.vi" and I would like the program to be able to retrieve that name so I can wire it to other functions
0 Kudos
Message 1 of 5
(2,950 Views)
In the file I/O pallette/file constants there is a vi called current vi's path you can use it with strip path to always return the name of the top level.


Joe



Joe.
"NOTHING IS EVER EASY"
Message 2 of 5
(2,950 Views)
In the Application Control palette there is a "call chain" function which gives you the whole calling path from the top level VI to this point!

Yours Sincerely
John www.tradersmicro.com
Message 3 of 5
(2,950 Views)
Thanks so much, just what i needed
0 Kudos
Message 4 of 5
(2,950 Views)
Thanks guys for your help, its working now
0 Kudos
Message 5 of 5
(2,950 Views)