ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
To download NI software, including the products shown below, visit ni.com/downloads.
This example shows you how to programmatically create an enumeration variable using the TestStand API.
Description-Separate-2
1. You should create a property object with value type Container using the NewPropertyObject Method:
If you are interested in creating a data type refer to Using the TestStand API to create a Data Type.
Additional-Separate-2
Related-Separate-2
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Clear and detailed explanation on creating an enumerated data type. Nice work!
For anyone interested, I have posted a version of this example using TestStand Expressions here: