NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set the description value for a step by using the TestStand API

Hi,
 
to read the description of a step there is provided a method:
 
Step.GetDescriptionEx
 
What about setting this value via API?
I didn't found any method like 'SetDescriptionEx' !
 
Regards,
Sunny
0 Kudos
Message 1 of 4
(3,232 Views)

The description is generated automatically by the Step Type and cannot be changed (you'll notice it is grayed out in the sequence editor).  You may want to use the comment field if you need to write arbitrary information about the step.

Allen P.

NI

0 Kudos
Message 2 of 4
(3,221 Views)

There is no set method because the description is dynamically computed by evaluating the DescriptionExpr property of the step's steptype.

If you want to make a custom step type with a settable description, add a step type subproperty of type string named MyDescription. Then set the step type's Step Description Expression to Step.MyDescription.

Now, for any instance of your step type, you can set the Step.MyDescription property to change the description.

Message 3 of 4
(3,219 Views)

Hi James,

i will realise it as you suggested!

Regards,

Sunny

 

0 Kudos
Message 4 of 4
(3,205 Views)