Accessing Properties Using API - LabVIEW
- 업데이트 날짜:2026-07-27
- 2분 (읽기 시간)
Refer to the included examples for information about LabVIEW API array access.
Purpose
This example shows how to access built-in and dynamic TestStand properties. Built-in TestStand properties are defined by the TestStand API, and are available for any object of a given class. Dynamic properties, also known as SubProperties, can vary between objects of the same class.
Example File Location
<TestStand Public>\Examples\TestStand API\Accessing Properties Using API\LabVIEW\Accessing Properties Using API.seq
Highlighted Features
- Built-In Properties
- Dynamic Properties
- RunState Property
- TestStand API
Major API
- PropertyObject.GetValNumber
- PropertyObject.GetValString
- PropertyObject.SetValNumber
- PropertyObject.SetValBoolean
- PropertyObject.SetValVariant
Prerequisites
None
How to Use This Example
Complete the following steps to run the example:
- Select Execute»Run MainSequence to execute the sequence.
- As the example executes, read the message popups for information about built-in and dynamic properties and how they are accessed.
Complete the following steps to review the sequences and steps in this example.
- Open the Accessing Built-In Properties sequence from the Sequences pane. Select the Access Built-in properties step, then click Edit VI in the Module tab of the Step Settings pane to open the code module. This code module uses the TestStand API to access built-in properties and methods.
- Open the Accessing Dynamic Properties sequence from the Sequences pane. Select the Get Step Results step, then click Edit VI in the Module tab of the Step Settings pane to open the code module. This code module uses the TestStand PropertyObject methods to get the values of dynamic step properties.
- Select the Set Step Results step, then click Edit VI in the Module tab of the Step Settings pane to open the code module. This code module uses the TestStand PropertyObject methods to set the values of dynamic step properties.
- Select the Set Variables step, then click Edit VI in the Module tab of the Step Settings pane to open the code module. This code module uses the TestStand PropertyObject methods to set the value of a local variable, and create a new local variable that exists only at run-time.
관련 콘텐츠
- Accessing Built-in Properties
Almost every TestStand object defines built-in, static API properties you can access in the programming language you use to create code modules.
- Accessing Dynamic Properties
The TestStand API provides the PropertyObject class so you can access dynamic properties and variables in the programming language you use to create code modules.
- TestStand Directory Structure
- RunState Subproperties