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?
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.
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: