NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Non Volatile Step Properties in TestStand

Solved!
Go to solution

Hi Ppl,

I have created a custom step type, which has a edit sub step. The edit sub step enables the user to create custom step properties. For example the user will be able to create properties like step.custom_property. These properties are volatile, meaning once you close the sequence file they are lost. Is there

any way to retain the step properties even after saving them ?

 

Thanks,

Sathish

0 Kudos
Message 1 of 5
(3,695 Views)

Sathish,

 

step properties are static for a step type definition. So if you want to add additional properties, you have to change the according step type definition.

From what i understand from your description, i would think that you are talking about settings unique to a single step of that type.

 

If my understanding is correct, property attributes are the way to go. The property in your case would be the instance of "custom step" and you can add additional attributes as required using your custom edit step.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 5
(3,694 Views)

Thanks Norbert for replying. I have not used property attributes before. Will have to get explore them.

 

Thanks,

Sathish

0 Kudos
Message 3 of 5
(3,692 Views)
Solution
Accepted by topic author lordsathish

Sathish,

 

Another way to add custom properties to a step instance is to add an unstructure container property to the step type definition.  You will then add all your custom properties under the unstructure container property.  For example, in the step type definition, you can add a property container and call it CustomProperties.   Right click on the property CustomProperties and select Properties.  In the properties dialog, click on the Advanced button and select Flags. In the flags dialog, check the flag PropFlags_UnstructuredProperty and the check the option "Reset Flags in All Loaded Instances of the Type" and click OK in all dialogs.  Modify the module for the edit substep to add the custom properties under Step.CustomProperties.  Don't forget to increment the change count of the sequence file.  Saving and reopening the sequence file should persist the custom properties.

 

Jose

Message 4 of 5
(3,682 Views)

Jose, that was awesome. Thanks for helping me out.

 

Thanks,

Sathish

0 Kudos
Message 5 of 5
(3,669 Views)