LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening Labview files using Python

Solved!
Go to solution

I was wondering if anyone knows a way to open a Labview project file and numerous windows within it using a script language such as Python. Right now, I have to open the project file then manually open several VIs connected to that project file and put each of them on their correct screens. I am looking for a way to just double click one file on the desktop and have all of the files open and go to their respective screens and be ready to run once I press the start button. Is this possible?

0 Kudos
Message 1 of 4
(3,621 Views)

VIs remember where they last were saved. So open each VI on the appropriate screen and save it in that location.

 

When LabVIEW is installed on a machine, the .VI extension is associated with LabVIEW. If you double click on a VI stored on disk, LabVIEW will open.

 

You can use the batch file "Start" command to open multiple windows:

 

START "C:\Program Files (x86)\National Instruments\LabVIEW 2011\LabVIEW.exe" "<path to VI 1>"

START "C:\Program Files (x86)\National Instruments\LabVIEW 2011\LabVIEW.exe" "<path to VI 2>"

 

Just replace the paths above with the paths to your VIs.

 

This works for me in Windows 7.

 

Rob

0 Kudos
Message 2 of 4
(3,616 Views)

That's what I was originally planning on doing, but I thought you had to open up VIs from within the project window that they are a part of, or is this incorrect?

0 Kudos
Message 3 of 4
(3,614 Views)
Solution
Accepted by topic author Llewellyon

You end up with VIs open that are not "in a project". Just open VIs. You can, however, use the same technique to open the project as the first thing and then open the VIs. If they are in the open project, they show up as part of the project. If they are not in the project, LabVIEW will want to add them to the project.

 

Rob

0 Kudos
Message 4 of 4
(3,587 Views)