05-25-2018 09:17 AM
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?
05-25-2018 10:00 AM
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
05-25-2018 10:03 AM
Thanks Jeff. Sure, but I'm looking for a command line solution or some other way to "automate" this.
05-25-2018 10:10 AM - edited 05-25-2018 10:13 AM
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
05-25-2018 10:36 AM
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.
05-25-2018 10:41 AM
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
05-25-2018 04:23 PM
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....)