Complete the following steps to create a VI that executes tests from a project programmatically.
  1. Select File»New VI to create a new, blank VI.
  2. Add the Run Tests from Project VI to the block diagram.
  3. Add the Open Results Window VI to the block diagram.
  4. Wire the test results out output of the Run Tests from Project VI to the test results in input of the Open Results Window VI.
  5. Right-click the project file path input of the Run Tests from Project VI and select Create»Control from the shortcut menu. A front panel control appears to the left of this VI. This control represents the path to the project file (.lvproj) that you want to execute tests.
  6. Wire all error in and error out terminals on the block diagram.
  7. Display the front panel and click the Browse button on the project file path control to select a project file.
  8. Select File»Save As and save this VI in an easily accessible location.
  9. Click the Run button to run the VI.
    Note When you execute tests from a project programmatically, LabVIEW executes tests in the order as they are listed in the project.