07-11-2012 08:49 AM
Hello,
I am a new user of Teststand and I would like change the type of the UUT serial number.
or add condition of the serial number the operator write in the UUT Information dialog box.
I want the serial number which just have 20 number and no letters.
if the serial number is different, the dialog box must reappear like at the begining.
Hope I have been clear.
Thanks
Solved! Go to Solution.
07-11-2012 10:47 AM
In your PreUUT callback you will need to set the Parameters.UUT.SerialNumber value to the desired setting. You can use the String functions in TestStand to do checks on your string to make sure it is formatted correctly. If it isn't, you can use logic in your code to display a popup to the user asking for the correct serial number.
07-11-2012 10:48 AM
You will need to override the PreUUT callback and then build some sort of algorithm to check for the desired serial number.
I've attached one example of how to do it.
07-12-2012 03:04 AM
thank you snowpunter and jiggawax,
jiggawax, the example you gave me is exactly what I need.
but I don't understand how it works.
because you used just 3 locals variables, SerialNumber, ValidNumber and ValidSerialNumber.
none of them have a number type, SN has a string type, VN and VSN have a boolean type.
How did you do to say the SN must be just a number ?
07-12-2012 08:28 AM
In the Check Serial Number step there is a function called Val. It sets Locals.ValidNumber to true if Locals.SerialNumber is indeed a number.
The Len function is validating the length is 20.
Hope this helps,
07-12-2012 08:41 AM
ok I don't have more question about it, everything is clear (for this ^^) !!
Thank you so much for your help !!
02-06-2013 08:44 AM
Hi jigg,
If the seq is running under batch UUT test, how to disable UUT Information, Is it the same way? I have tried to override the PreUUT you posted, but It still displayed on the screen.
Cheers.
Jimmy
02-10-2013 08:24 PM
In the BatchModel.seq, the Serial Number is requested in the PreBatch sequence instead of the PreUUT. modelsupport2.dll loads and displays the Panel that asks for the Serial Number. It asks for serial numbers for every socket at once.