04-16-2013 10:12 PM
UUt serial number is not displayed in batch results popup window. I am using TestStand 2012 SP1 f1 (5.0.1.66). I am also using Prebatch callback and setting up
Parameters.ModelData.TestSockets[index].UUT.SerialNumber with the UUT serial number. I have used the exact sequence file with TestStand 4.2 (4.2.0.134) with no problems.
04-17-2013 01:18 PM
Hi Oshana,
Are you doing anything else in the PreBatch Callback? The default Batch Process Model should display the same Serial Numbers that were originally entered in the first dialog box. The Serial Numbers you set with the expression should also show up in the Report.
04-17-2013 02:03 PM
Also, I tried to replicate this on TestStand 4.2.1 but was seeing the same behavior. Can you give a bit more details on how you implemented this?
05-07-2013 05:22 PM
Sorry for my late reply I was away for work. I actually revisited the code that I implemented with TestStand 4.2 (4.2.0.134) and it is showing the exact problem. Sorry for misleading you. however the UUT report is showing the correct serial number for each unit. This would be something that is nice to have but not critical for my project. I am basically auto discovering all my UUT so instead of scanning the serial number I read it from the UUT memory so there are a lot of steps in my PreBatch call-back but they are all related to reading the UUT serial number. Once I read all the UUTs serial numbers I set the following in a for loop:
Parameters.ModelData.TestSockets[Locals.For_Loop_Index].UUT.SerialNumber =StationGlobals.UUT_Serial_Numbers[Locals.For_Loop_Index]
I tried to implement my a simple PreBatch with only a for loop and an array of serial number and I ended up with the same issue. So I am suspecting that the batch report is getting the serial numbers from a different variable and that variable is set when you run the batch option without the PreBatch call-back.
Kind Regards,
Oshana
05-08-2013 10:17 AM
I added a PreBatch with the following expression and it worked (showed up in the report) for me:
Parameters.ModelData.BatchSerialNumber = "batchserial",
Parameters.ModelData.TestSockets[0].UUT.SerialNumber = "uutserial"
Have you changed anything else in the process model or with callbacks?
-Doug
05-08-2013 03:59 PM
Hi Doug,
I am using the ModelOption call-back to enter the total number of UUT to be tested. So I am setting "Parameters.ModelOptions.NumTestSockets" in the ModelOption call-back to whatever number the user enters via a pop-up box:
Kind Regards,
Oshana