NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I 'grab' a copy of the current UUT Serial Number within TestStand?

I am trying to access the UUT Serial Number typed in at the start of each UUT Test Run, in TestStand, so that I can write it to a pre-defined Database. How can I do this?
0 Kudos
Message 1 of 4
(5,613 Views)
Hi,

You can obtain the SerialNumber by using the lookup RunState.Caller.Locals.UUT.SerialNumber, I am assuming you will be doing this from somewhere within the MainSequence.

I have attached a TS3.0 SequenceFile, it obtains the SerialNumber and displays it in a message popup.

Regards
Ray Farmer
Regards
Ray Farmer
Message 2 of 4
(5,604 Views)
Although Runstate.Caller.Locals.UUT.SerialNumber will return the serial number from within MainSequence, you will have to modify this for a subsequence such that you prepend a "Runstate.Caller" for each level of sequence call you have. So to get this from a subsequence called by MainSequence, you will need Runstate.Caller.Runstate.Caller.Locals.UUT.SerialNumber. As this might get confusing and error prone if you are moving sequences around, I suggest using:

Runstate.Root.Locals.UUT.SerialNumber

--Peter
Message 3 of 4
(5,592 Views)
Thanks for the help.
Very much appreciated! May be back for more help as I'm a TestStand novice!

Regards.
Neil.
0 Kudos
Message 4 of 4
(5,581 Views)