NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass SerialNumber to Sourcecode when using Batch Model

Hi, I want to use Batch Model in my testing system.

But there seems some problem when calling PID check.

eg.

SerialNumber A->Slot 1

SerialNumber B->Slot 2

My test software must know SerialNumber A and the related slot ID is Slot 1 and then check the related information.

How can teststand pass these kind of information to Source Code?

 

 

 

0 Kudos
Message 1 of 6
(4,132 Views)

Assuming you are using an unmodified sequence model, the serial number is in RunState.Root.Parameters.TestSocket.UUT.SerialNumber.

0 Kudos
Message 2 of 6
(4,110 Views)

By the way, in the parallel sequence model, is there any variable can be used to identify the test socket, lets say the configuration for 2 test sockets?

Thanks advance.

 

JL Kok

0 Kudos
Message 3 of 6
(3,924 Views)
Have you ever try a parameter in run state?
0 Kudos
Message 4 of 6
(3,899 Views)

As Dennis mentioned, calling RunState.Root.Parameters.TestSocket.UUT.SerialNumber will return the serial number for the current Test Socket.

 

Calling RunState.TestSockets.MyIndex will return the Test Socket index for the current Test Socket.

 

Hope this helps. Please let us know if you have further questions regarding this topic.

Manooch H.
National Instruments
0 Kudos
Message 5 of 6
(3,868 Views)

Thanks a lot to all of you. Yes, this is the things that I am looking for.

Appreciate it a lot.

0 Kudos
Message 6 of 6
(3,855 Views)