12-29-2020 04:17 AM
hello everyone
I use TestStand to call veristad for data acquisition, and use LabVIEW to call TestStand API function to generate test sequence. In the circle drawing step, I click the plus sign variable container to automatically add a group of variables.like VariableName,VariableUnit......;I want to know how to add elements of variable containers with TestStand API functions.
If you have any way for me how to do this, i will be grateful to you.
Best regards,
Solved! Go to Solution.
01-05-2021 09:07 AM
Basically you want to use the property object methods. Depending on the variable type it will be different.
For example:
Step.SetValString("MyVariable", 0x1, "Foo")
Will create a variable called MyVariable for your step (if it doesn't exist) and set the value to Foo. It will be a string variable.
You can read more about the SetValXXX methods for the property object here: https://zone.ni.com/reference/en-XX/help/370052AA-01/tsapiref/reftopics/propertyobject/
Hope this helps,
01-05-2021 08:38 PM
Thank you. That's what I want