NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

change step name inside a subsequence

Solved!
Go to solution

Hello,

 

I have a sequence "Main" and a subsequence "test".

The main calls test subsequence.

The 'disable tracing in sequence' is active on the 'test' sequence.

 

When running the main I will not see what is happening in the subsequence 'test'.

But I want to change the string of the step name of the subsequence call.

 

I tried:

RunState.sequencefile.GetSequence.NextStep.Name = "test2"

 

and also with a vi included in this post.

 

 

 

 

Download All
0 Kudos
Message 1 of 7
(3,476 Views)
Solution
Accepted by topic author InspectorGadget123123

Hi,

 

If you want to rename the calling step (ie. the sequence call), you could either do this by expression:

 

Runstate.CallingStep.Name = "your text here"

 

 

Or in your LabVIEW code:

 

Rename Calling Step.png

 

I hope this helps,

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

Message 2 of 7
(3,463 Views)

Damn.

I was looking the wrong way.

 

Thanks!

0 Kudos
Message 3 of 7
(3,460 Views)

No problem - glad I could help Smiley Happy

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 4 of 7
(3,458 Views)

Hmmm.

 

I changes the text indeed but only if de sub sequence is finished.

Is it possible to change it while in the subsequence?

0 Kudos
Message 5 of 7
(3,454 Views)
Solution
Accepted by topic author InspectorGadget123123

Yes - add the following expression to the post-expression of your VI call:

RunState.Thread.PostUIMessageEx(UIMsg_RefreshWindows, 0, "", RunState.Caller, True)

Regards,

 

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

Message 6 of 7
(3,451 Views)

thanks again.

0 Kudos
Message 7 of 7
(3,446 Views)