LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
kreienhe

Automatically run a VI within a LabView Project when a LabView Project is opened.

Status: Declined

National Instruments will not be implementing this idea. The command line approach is the preferred workaround.

Currently there is no way to have a VI run automatically when a LabView Project is opened other than using a separate VI using VI server calls.   I would like to see this added to the Project properties menu similar to the option that is given within a VI's properties-execution to "Run when opened".  It would also be nice to have it target the correct device within the project.

6 Comments
AristosQueue (NI)
NI Employee (retired)

Right with you. Except that first we need a way to be able to run a project at all. Then we can worry about "run when opened."

 

I'll make you a deal... I'll kudos your idea here, but you gotta go kudos this idea:

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Ability-to-mark-the-top-level-VI-in-a-project-and-run-...

 

 

kreienhe
Member

Yes, but I want fewer steps.  I want a shortcut to the project that opens the project then automatically opens my Main.vi and runs Main.vi.  I do like the idea of a Run button within the project, but I would want to see fewer steps for my non Labview operators. You have my Kudos!

jlokanis
Active Participant

I created the original idea about the run top level button/shortcut.  I would kudo this idea but if you want to have your top level VI run when you open the project, then you really need to build your project into an EXE.  Non-labview developers should really not have access to source code or the IDE.

-John
------------------------
Certified LabVIEW Architect
kreienhe
Member

Thats great but I do need the source software for both Developers and non-Developers for debugging.

richardscheff
Member

Because this comes up every few years. 

One shortcut string

execute labview include two arguments.  Project file and vi file.

"C:\Program Files (x86)\National Instruments\LabVIEW 2013\LabVIEW.exe" "C:\_096 Rev F.lvproj" "C:\_096 Rev F.vi"

 

Hope that works.

 

 

 

Darren
Proven Zealot
Status changed to: Declined

National Instruments will not be implementing this idea. The command line approach is the preferred workaround.