NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing step names during runtime

Solved!
Go to solution

Hello all,

 

for better communication with external personal we want to have the current sequence/subsequnce name and the step index in the step name that is written in the report.

I found a way to change the step name while the script is running with using the "SequenceFilePreStep" callback and the following statement

> RunState.Caller.Step.Name = "(" + Str(RunState.Caller.Sequence.Name) +"_" + Str(RunState.Caller.StepIndex) + ") " + RunState.Caller.Step.Name

 

The problem is that when the script is run multiple times in direct succession using the "Test UUTs" mode the name gets longer and longer.

 

I have not found a way to reliable revert the name or let it only change once.

 

A manual change of the name is not desired because when there are changes in the script every following step also has to be renamed manual.

 

I hope someone can help me.

 

Greetings

Markus

0 Kudos
Message 1 of 2
(213 Views)
Solution
Accepted by topic author MaRePe

A colleague did find the solution:

In the properties of the sequences (double click on the sequence) uncheck the "Optimize Non-Reentrant Calls to this sequence" option.

This did solve my problem.

0 Kudos
Message 2 of 2
(205 Views)