Distributing a User Interface
- 更新时间2025-07-23
- 阅读时长3分钟
Note You must install LabVIEW or
LabWindows/CVI Run-Time Engine version and the .NET version that corresponds to the
development environment version you use to create user interfaces on the test station
computer.
Complete the following steps to distribute a user interface.
- In the TestStand Sequence Editor, select File»New»Workspace File to create and save a new workspace file as Deploy User Interface.tsw.
- Right-click the Workspace window and select Insert New Project into Workspace from the context menu.
- Save the project as User Interface.tpj.
- Right-click the User Interface project and select Add Files to Project from the context menu.
- In the file browse dialog box, browse to the <TestStand Public>\UserInterfaces\Simple\CVI\SourceCode directory and change the Files of Type setting to All Files (*.*).
- Select TestExec.exe and TestExec.uir and click Add. If TestStand prompts you to resolve the path, select the Use a relative path for the file you selected option and enable the Apply to All option.
- Click OK to close the dialog boxes.
- Save the workspace file.
Distributing Tests from a Workspace
Complete the following steps to distribute tests from a workspace.
- Select Tools»Deploy TestStand System in the sequence editor to launch the TestStand Deployment Utility.
- On the System Source tab, enable the Deploy Files»From TestStand Workspace File option.
- Click the File Browse button located to the right of the From TestStand Workspace File control.
- Browse to the workspace file you saved in .
- Click Open.
- Click the Distributed Files tab.
- Click Yes in the dialog box that launches to allow the deployment utility to analyze the workspace file and dependent files.
- Select TestExec.exe in the Distributed Files list. The File Properties section to the right of the Distributed Files list updates for this selection.
- In the File Properties section on the Distributed Files tab, enable the Create Program Item option.
- Enter Simple CVI UI in the associated string control to add a shortcut menu item for TestExec.exe.
Option A: Configuring the Installer
Complete the following steps to configure the installer.
- On the Mode tab, select the MSI-based installer output type.
- On the Installer Options tab, use the Installer Directory control to specify the directory to which the deployment utility copies the installer for the test system and enable the Install TestStand Runtime option.
- Click Save to save the build as SimpleCVIUI.tsd.
- Click the Build button to build the installer.
Option B: Configuring the Package Distribution
Complete the following steps to configure the installer:
- On the Mode tab, select the Package-based distribution output type, then select the Package Installer option.
- On the Package Distribution Options tab, use the Output Directory control to specify the directory to which the deployment utility copies the installer for the test system and enable the Install TestStand Runtime option.
- Click Save and save the build as SimpleCVIUI.tsd.
- Click Build to build the installer.
Installing the Test System
Complete the following steps to install the test system.
- To use the installer, copy all the files from the installer directory you specified on the Installer Options tab to the distribution media you want to use or to a shared directory on a network.
- On the test station computer, insert the distribution media or connect to the network and run the installer executable to start the installer.
- When the installation completes, complete the following steps to verify that the TestStand Runtime installed correctly.
- Launch NI Package Manager
- Select the Installed tab, and enter teststand in the search field.
- Verify that the TestStand products you included are present in the list of packages.
- Activate a license when the sequence editor prompts you.
相关内容
- Using Side-by-Side Versions of the LabWindows/CVI Run-Time Engine with TestStand
- TestStand Directory Structure
- Activating and Licensing TestStand
After you install TestStand, you must use NI License Manager to activate the software or initiate the evaluation period for the software.