NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

access and set serial number on batch model from code

hi,

 

i tried to access : RunState.Root.Locals.ModelData.TestSockets[0].UUT.SerialNumber

 

from my c# code , using :

 

seqcontext.Root.Locals.SetValString("ModelData.TestSockets[0].UUT.SerialNumber", 0, ProductSerialNumber);

also :

seqcontext.Root.Locals.SetValString("RunState.Parameters.ModelData.TestSockets[0].UUT.SerialNumber", 0, ProductSerialNumber);

 

both didnt work

please advise how can i set the sn from my code instead of prebatch model mechanism

 

thanks

 

0 Kudos
Message 1 of 3
(2,731 Views)

What version of Teststand are you using? Are you programming in Teststand or Visual Studio or another environment?

Chase
NI Technical Support Engineer
0 Kudos
Message 2 of 3
(2,687 Views)

programming using visual studio c#

i solved this.

 

now i face something else - _ExecutionViewMgrEvents_EndExecutionEvent is not envoked at the end of the batch run

 

i handle the c# code according to this event which tells me that run is over ( on single uut it works perfect)

 

how can i envoke it from teststand?

0 Kudos
Message 3 of 3
(2,685 Views)