Running a VI Automatically When Booting Up a Computer or cDAQ With Windows

Updated Dec 15, 2022

Environment

Software

  • LabVIEW

Operating System

  • Windows
  • Windows Embedded Standard (WES)

A VI needs to open up automatically and start running when I boot up my computer, without me having to open LabVIEW manually.

If you are able to create an executable using the Application Builder, you can just follow the steps in this KB to launch the executable at startup. If you don't have access to Application Builder, you can perform the steps below to automatically launch a VI at boot-up:
 
  1. Go to C:\Program Files\National Instruments\LabVIEW XX\LabVIEW.exe.
  2. Create a shortcut of this exe on your desktop.
  3. Open the properties of this exe (right-click EXE»Properties), and change the target to the VI that you want to run on startup. For instance: C:\Program Files\National Instruments\LabVIEW XX\<vi name>, where <vi name> is the VI
  4. Open the VI, and select File»VI Properties from the drop-down menu.
  5. Under Execution, check the box for Run when opened.
  6. Go to the block diagram and include an option for Quit LabVIEW from Functions»All Functions»Application Control»Exit LabVIEW. (optional)
  7. Save the VI.
  8. Copy the Shortcut of the LabVIEW.exe which is on your desktop to the Startup Folder on: C:\Users\<user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup​
  9. Reboot your computer.

Additional Information

  • The process outlined in this KB will merely run your VI on startup. The 'executable' we are running is the shortcut to LabVIEW, which opens the specified VI. 
  • The startup folder for all users on the computer is found under C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup