NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

UUT loop index - how?

Solved!
Go to solution

Can I monitor UUT loop index in WatchExpression while running my sequence?

Simply put, I want to see how many UUTs I already did.

 

Thank you,

 

fomine

-fomine
_________________________________
You can do greater things with LabVIEW!
0 Kudos
Message 1 of 5
(4,725 Views)
Solution
Accepted by topic author fomine

hi,

 

have you try this expression "RunState.Root.Locals.UUT.UUTLoopIndex" ?

 

a2 

Message 2 of 5
(4,710 Views)

Hello a2,

 

Thanks a lot!

That string was exactly what I was looking for!

Please tell me, how should I know about it? It is not listed under RunState.Root in functions. LIkely, there's a bunch of parameters that I may use (# of UUts passed/failed, for example!)

 

Thanks a lot once again!

 

fomine

-fomine
_________________________________
You can do greater things with LabVIEW!
0 Kudos
Message 3 of 5
(4,695 Views)

Hello fomine,

 

"runstate.root" is a reference of ProcessModel. With this reference, it is possible to access all variables of ProcessModel (Locals, Parameters, FileGlobal, ...).

To know these variables, open your ProcessModel.

To have a counter of UUts passed or failed, I think it is necessary to modify the ProcessModel.

 

For information, steps to add your counter :

- add a local variable "PassedCounter" in the sequence "Test UUTs" in the ProcessModel ("SequentialModel.seq" by default -> create a copy)

- incremente this variable after each iteration if test is passed :

    - add an "Statements" step after the step "PostUUT Callback"

    - add this precondition : "RunState.Sequence.Main["MainSequence Callback"].Result.Status=="Passed"

    - in the expression field, incremente your new local variable (Locals.PassedCounter++)

 

you can see your counter like "UUTLoopIndex", with the expression "Runstate.Root.Locals.PassedCounter"

 

a2

 

Message 4 of 5
(4,659 Views)

Hi a2,

 

Thanks a lot for your answers, very well explained!

 

fomine

 

-fomine
_________________________________
You can do greater things with LabVIEW!
0 Kudos
Message 5 of 5
(4,616 Views)