08-17-2023 03:20 AM
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?
08-17-2023 06:03 AM
https://www.ni.com/docs/de-DE/bundle/teststand/page/tsexamples/infotopics/callbacks_preuut.htm
You might find that useful
08-25-2023 08:29 AM
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.