NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

UUT serial number is not displayed in batch results popup window?

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.

 

 

 

 

Batch Results.png

 

 

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

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.

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(4,147 Views)

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?

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 6
(4,142 Views)

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

0 Kudos
Message 4 of 6
(4,087 Views)

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

0 Kudos
Message 5 of 6
(4,071 Views)

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

0 Kudos
Message 6 of 6
(4,065 Views)