NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Serial numbers from within the main Sequence?

Is it possible to set the serial Number of a DUT not from the PreUUT or PreBatch as in my case as i am using the Batch Process Model but from within the Main Sequence or even a sequence lower down the chain.  

 

The product i am testing has the serial number stored in an Eeprom so need to be powered to read out, I am running 8 sockets in TestStand 2013.

 

Thank for any help given. 

0 Kudos
Message 1 of 4
(4,810 Views)

Why can't they be powered on in PreUUT?  Where are you doing your power on?  Just override PreUUT and do your poweron there?  Or is it that you have a power on test in your MainSequence and want to wait?

 

 

I don't recommend it but this will work: RunState.Root.Locals.UUT.SerialNumber = "123454"

 

The problem is that if you ever run against a model that doesn't have this then it will error out.  You can precondition the step and use the PropertyExists() function as well.

 

You can also customize the process model to have another callback after MainSequence that will get the serial number.  Then store it in a Fileglobal in MainSequence and pass it to the custom callback.

 

Note that there are a couple of minor things that will be affected by this. Doing a search for SerialNumber in Test UUTs - Test Socket Entry Point will show you where it is being used so you can look at what will be affected.

 

Regards,

 

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(4,805 Views)

Hi WayneR1,

 

You could also try editing the report generation to include a new header which is a custom serial number. This will allow TS to assign its own serial numbers and for the items where you have a serial on the Eeprom you could add the value to a second field.

 

Kind Regards,


Larry Colvin
Associate Principal Engineer
Dyson Technology Ltd.

0 Kudos
Message 3 of 4
(4,785 Views)

This is an alternative that we did for one of our programs.

 

Power up the Unit ( power up tests) and read serial number from EEPROM in Pre UUT only.

 

In the main sequence do other tests.

 

The issue with the above is recording of the results.(Since Pre UUT does not store the results).

 

You can copy the locals.resultlist from Pre UUT to a file globals.( This should be your last statement in Pre UUT).

In the main sequence your first statement will be copy this fileglobals to the locals.result list.

This ensures that your power up tests and EEPROM read tests results appear in the report.

 

Hope this helps.

 

0 Kudos
Message 4 of 4
(4,753 Views)