If you are using Command Prompt to call TestStand and run sequences from the Command Line Interface (CLI) you must use the start /wait
command to ensure TestStand finishes it's sequence.
To demonstrate this, below is a step by step guide to call a shipped example, Computer Motherboard Test, and ensure the CLI waits:
- Open Command Prompt
- If the window/console shows anything other than C:\>, the type C: and press Enter.
- The screen should now be on a new line starting with C:\>
- Change directory to the location of the user interface you use, using the command cd and press enter, for example:
- cd "C:\Program Files (x86)\National Instruments\TestStand 2017\UserInterfaces\Full-Featured\LabVIEW\Source Code"
- The screen should now be on a new line starting with:
- C:\Program Files (x86)\National Instruments\TestStand 2017\UserInterfaces\Full-Featured\LabVIEW\Source Code>
- Input the commands to start and wait the TestStand Engine, then Quit the Engine when complete and finally the commanad for TestStand to do an action using the commands from the Application Manager within TestStand. To call the Computer Motherboard Example to TestStand and ensure it waits before exiting input the following and press enter.
- start /wait TestExec.exe -Quit -RunEntryPoint "Single Pass" "C:\Users\Public\Documents\National Instruments\TestStand 2019 (32-bit)\Examples\Demos\Computer Motherboard Test\LabVIEW\Computer Motherboard Test Sequence.seq"
- Note: The file path may be different for your computer and should be adjusted if you are using a different version of bitness of TestStand or different sequence.