NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically modifying a step name

I want to modify dynamicaly the name of a step. this is for report reasons. in the report the step name appears and if I loop on a step for 100 times it always displays the same name.
I would like to change the name dynamically (e.g. test 1 for the first loop, test 2 for the second loop, etc.)
how do I do it?
 
Thanks
 
Yair
0 Kudos
Message 1 of 2
(2,708 Views)
Yair,

There is an example sequence on the Developer Zone that changes the step name for a step in a loop:

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=C415E8836A6365CBE034080020E74861&p_node=%20DZ52226&p_source=External

The example uses an ActiveX call to change the Name property of the Step object.  In order to access the step, object is accessed from "RunState.PreviousStep" in the Sequence Context.  Note, however, that the change made to the step name does not take effect until the step is next executed.  After a step is executed the step information is logged into the Locals.ResultList[] array.  The ResultList array contains the contents of the generated report.

Let me know if you have any qeuestions on the example.

Tyler Tigue
NI
0 Kudos
Message 2 of 2
(2,686 Views)