LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open vi file with specific Labview version using batch file (Windows)

I want to open certain vi with using Windows batch file and to use specific version of Labview development system. I tried

 

"C:\Program Files (x86)\National Instruments\LabVIEW 2012\LabVIEW.exe" "path_to_vi"

"C:\Program Files\National Instruments\LabVIEW 2012\LabVIEW.exe" "path_to_vi"

 

to use 32-bit and 64-bit development systems respectively. However Labview opens file with version which was last used before. Are there any ways to force it use specified version?

0 Kudos
Message 1 of 5
(3,567 Views)

I have a VI that can open VIs in different versions of LabVIEW and it works as you have described by opening the appropriate LabVIEW.exe with the path to the VI as the only argument. I'm not sure why this wouldn't also work for opening in the 32-bit or 64-bit version of LabVIEW.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 5
(3,553 Views)

What VI are you talking about? Is it in vi.lib or?

0 Kudos
Message 3 of 5
(3,545 Views)

No, it's a VI I wrote so that when I open any VI from Windows Explorer it will open it in correct version of LabVIEW according to it's source version (rather than the latest/last version of LabVIEW I opened). All it does to launch the right version of LabVIEW is to call System Exec with the path to the correct version of the LabVIEW.exe and the path to the VI - which is essentially the same as what your batch file is doing.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 5
(3,543 Views)

Well it seems to be working for me now too, maybe that was Friday the 13th Smiley Happy

Message 5 of 5
(3,539 Views)