09-21-2016 06:35 AM
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.
Solved! Go to Solution.
09-21-2016 07:21 AM
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:
I hope this helps,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
09-21-2016 07:24 AM
Damn.
I was looking the wrong way.
Thanks!
09-21-2016 07:26 AM
No problem - glad I could help
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
09-21-2016 07:29 AM
Hmmm.
I changes the text indeed but only if de sub sequence is finished.
Is it possible to change it while in the subsequence?
09-21-2016 07:45 AM
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
09-21-2016 07:48 AM
thanks again.