09-13-2010 10:03 AM
Hi,
I've got a VI which I'm still, er, "debugging" 🙂
I want to set it up so it runs automatically, but also have the option of editing it if necessary. Therefore, I don't want to set the "Run when opened" VI property.
Is there a command line option to start Labview and run a VI automatically? E.g. something like:
"<path to LV exe>\labview.exe" "<path to VI>\test.vi" /run
I could then make this into a shortcut and put it in the Windows startup folder.
However, it would mean I also have the option of starting Labview normally and opening test.vi without it going off and doing all sorts of stuff before I get a chance to stop it.
Or have I missed something somewhere?
Thanks,
Dave
09-13-2010
10:26 AM
- last edited on
12-18-2025
11:44 AM
by
Content Cleaner
The list of supported command line options for LabVIEW does not have such a switch. You can, instead, do this using the VI Server by creating a separate VI that's set to "run when opened" that will open a reference to your VI and run it.

You can pass user-defined command line options to LabVIEW which you can then read into this "runner" VI. There's an example that ships with LabVIEW showing you how to parse user-defined command line options. Open the Example Finder and search for "command".
09-13-2010 10:34 AM
If you drop a Run when open VI in another VI and open it from the block diagram...
Ben
11-07-2017
09:59 AM
- last edited on
12-18-2025
11:45 AM
by
Content Cleaner
https://www.ni.com/docs/en-US/bundle/labview/page/launching-a-vi-from-the-command-line.html
I think this can help u.