Accessing Properties Using API - TestStand Expressions
- 업데이트 날짜:2026-07-27
- 2분 (읽기 시간)
Refer to the included examples for information about API array access using TestStand expressions.
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\TestStand Expressions\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. Review the statement steps in this sequence. These steps access built-in properties and methods using the TestStand API.
- Open the Accessing Dynamic Properties sequence from the Sequences pane. Review the first set of statement steps under the Get Step Properties label. These steps use the TestStand PropertyObject methods to get the values of dynamic step properties.
- Review the set of statement steps under the Set Step Properties label. These steps use the TestStand PropertyObject methods to set the values of dynamic step properties.
- Review the set of statement steps under the Get Step Properties label. These steps use the TestStand ProprtyObject methods to set the value of a local variable, and dynamically create a 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