Use the TestStand Utility (TSUtil) Functions Library to use certain aspects of the TestStand API in particular application development environments (ADEs). Many TestStand Utility (TSUtil) functions operate on environment-specific objects, such as menus, that the environment-neutral TestStand API cannot access. The functions available in TSUtil vary according to the ADE.

The TSUtil library contains functions to insert menu options that automatically execute commands the TestStand User Interface (UI) Controls API provides. The TSUtil library also provides functions to help localize the strings on a user interface.

The following table describes how to use the TSUtil library in different ADEs. If the table does not include the ADE you use, a version of TSUtil does not exist for the ADE.

Table 41. Using the TSUtil Library in Different ADEs
ADE Help Location Files How to Use
LabVIEW Context help for each VI and in the NI TestStand VIs and Functions Help, accessible by right-clicking the VI and selecting Help from the shortcut menu or by selecting Help»NI TestStand VIs and Functions VIs on the Functions»TestStand palette_TSUtility.llb located in <TestStand>\API\LabVIEW Place VIs on the block diagram.
LabWindows/CVI Function panels (TSUtil.fp) TSUtil.c, TSUtil.h, TSUtil.fp, and TSUtil.obj located in <TestStand>\API\CVI Insert TSUtil.fp into the LabWindows/CVI project. Include TSUtil.h in the source files as needed. The names of TestStand-related functions begin with a TS_ prefix.
.NET In the Object Browser and in the source window using Microsoft IntelliSense National Instruments.TestStand.Utility.dll located in <TestStand>\API\DotNet\Assemblies\CurrentVersion Add a reference to the assembly to the project. The classes in this assembly reside in the National Instruments.TestStand.Utility namespace.
C++ (MFC) Comments in the C++ header file, TSUtilCPP.h TSUtilCPP.cpp and TSUtilCPP.h located in <TestStand>\API\VC Add TSUtilCPP.cpp to the project once. Include TSUtilCPP.h in the source files as needed. The classes in this library reside in the TSUtil namespace.

You can use the source code for one of the existing TSUtil libraries as a guide to write your own code that performs similar functionality.