NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

UUT Serial Number and Station ID

I develop the C# dot net to run the TestStand API.

I would like to check the SN format and some activity before let the test start.

 

However I have the problem to pass the UUT Serial Number from TextBox to TestStand.

 

I disabled the prompt to ask the Serial Number in TestStand model but I am not success to set the UUT Serial Number to TestStand and every times that run, the SN in REPORT always show blanks.

 

Anyone know the example code from C# or another program, please help to guide me or share?

please set this as ANSWER or KUDO this post, if it help you.


0 Kudos
Message 1 of 3
(890 Views)
0 Kudos
Message 2 of 3
(869 Views)

There are two ways I know:

 

1. Just like Oli_Wachno told you, overriding PreUUT Model to achieve customization of serial numbers (such as rewriting a new window to receive scanned serial numbers and passing them in to TS)

 

2. Receive the scanned serial number on a certain test item in TS, and then transfer it to the SN property in the process model by obtaining the context through the engine instance

 

You need to understand that SN is ultimately just an property in the process model, and after understanding this, it is not difficult to do it.

0 Kudos
Message 3 of 3
(812 Views)