NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Local variable in Model out of main sequence

I want to write to sequentialmodel.Locals.BatchSerialNumber. From out of the main sequence I can use runstate.caller. ...

 

But I want to write to it from out a sequence called from the main sequence. (I did a sequence call to another sequence from main sequence). If I write from this sequence to runstate.caller, I write to the main sequence. But I want to write to Sequential.Locals.BatchSerialNumber.

0 Kudos
Message 1 of 4
(2,996 Views)

RunState.Root.Locals.BatchSerialNumber

 

This will work if you start the sequence using the appropriate execution entry point.

 

Thanks,

 

PH

0 Kudos
Message 2 of 4
(2,988 Views)

Are you talking about Locals.UUT.BatchSerialNumber?

 

During execution, you can get access to get and set this value by using RunState.Root.Locals.UUT.BatchSerialNumber

 

-Jack

0 Kudos
Message 3 of 4
(2,987 Views)

Yep..... I forgot the UUT... model is the root object.... got it!

0 Kudos
Message 4 of 4
(2,980 Views)