LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Way to change Open behavior in Windows to open VI in new project?

Presently, in Windows Explorer, you  can double-click (or right-click and Open) a vi and opens in the current version of LabVIEW.  What I would like to do is have it optionally open the vi in a new project if there is already a project open.  I have looked at the command line interface (CLI) but don't see a switch or argument to force it to open in a new project. Any thoughts on how to accomplish this?

0 Kudos
Message 1 of 7
(2,863 Views)

From windows explorer.  Drag the VI into the project explorer.  It is added to the existing open project.

 

Open a new blank project and repeat the same to open in a new project.

 

Them mark the solution and add kudos


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 7
(2,855 Views)

Thanks Jeff. Sure, but I'm looking for a command line solution or some other way to "automate" this.

0 Kudos
Message 3 of 7
(2,850 Views)

Windows won't do LabVIEWs job.  A vi with the right scripting methods would duplicate the ability to automatically do that, but the command line....no not without invoking a labview exe with the inputs exposed as command line arguements


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 7
(2,847 Views)

Yes, was looking for a way to automate in using LabVIEW not Windows. People write batch files etc. and leverage executable command line options all the time, right?  So let me rephrase:  is there a way to have LabVIEW.exe run a specific script when loading a vi from Windows explorer vs opening the vi from some other method like LV Project view etc.? Couldn't I then have that script check for open projects and then ask to choose which project the vi should be opened in?  I realize this may be a lot of effort to save a few seconds of manually doing it, but I'm looking at it as more if a learning exercise for command line interfacing and scripting.

0 Kudos
Message 5 of 7
(2,838 Views)

Yes. And when you learn how to duplicate the native drag n drop behavior between the OS and application post the example.

 

I like learning but, I don't think I have time to rework existing interactions that work


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 7
(2,833 Views)

You can take a look at Brian Hoover's VI launcher.  Available here:

 

https://drive.google.com/file/d/0Bx36EXOz8jqXUVIyX2lSdFB4TEk/view

 

(though, when I tried to download it, Google told me it had a virus, so....)

0 Kudos
Message 7 of 7
(2,808 Views)