Acquiring a Derived Class from the PropertyObject Class in LabVIEW
- 更新时间2025-03-28
- 阅读时长1分钟
In some cases, you might need to use the PropertyObject class methods to obtain a reference to a TestStand object. You might then want to access one of the static properties of the TestStand object, such as the run mode for the third step in the Main step group of the currently executing sequence.
For methods in the PropertyObject class that can return objects derived from PropertyObject, you must acquire the derived interface for the object to access the built-in properties and methods of the derived class.
The block diagram in the following figure shows how to use a lookup string to obtain a reference to a Step object from a SequenceContext object.
Note You must close the Step object reference when you no longer need it by using a Close Reference node.