Type Casting API Classes - LabVIEW
- Aktualisiert2026-07-27
- 1 Minute(n) Lesezeit
Purpose
This example demonstrates how to type cast TestStand objects in order to access specific API properties and methods.
Example File Location
<TestStand Public>\Examples\\TestStand API\Type Casting API Classes\LabVIEW\Type Casting API Classes.seq
Highlighted Features
- Built-In Properties
- Dynamic Properties
- RunState Property
- TestStand API
Major API
- PropertyObject.GetPropertyObject
- SequenceFile.AsPropertyObjectFile
- SequenceFile.AsPropertyObject
Prerequisites
None
How to Use This Example
Complete the following steps to review the code in this example:
- Open the Cast to More Generic Class sequence from the Sequences pane. Select the Cast to More Generic Class step, then click Edit VI in the Module tab of the Step Settings pane to open the code module. This step casts a sequence file object to the more generic propertyObject and PropertyObjectFile classes to access their properties and methods.
- Open the Cast to More Specific Class sequence from the Sequences pane. Select the Cast to More Specific Class step, then click Edit VI in the Module tab of the Step Settings pane to open the code module. This step casts a PropertyObject to more specific classes to access their properties and methods.
Complete the following steps to run the example:
- Select Execute»Run MainSequence to execute the sequence.
- As the sequence executes, read the message popups for information about the kinds of type casting available in the TestStand API.
Verwandte Inhalte
- TestStand Directory Structure
- 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.
- RunState Subproperties