Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

How do I Access the UUT Serial Number in My Sequence or Test Code?

6 ratings | 3.50 out of 5
Print
At runtime, you can access the UUT serial number using Runstate.Root.Locals.UUT.SerialNumber. The serial number and UUTLoopIndex is a local variable of the default process model. Below is the definition for Runstate.Root. This is copied from Chapter 8 of the TestStand User Manual.

Runstate.Root:
Sequence context for the root sequence invocation. If you initiate an execution using a process model entry point, the property is the sequence context for the process model entry point. For example, if you use an entry point from the default TestStand process model, the Root property is the sequence context of the Test UUTs or the Single Pass sequence. If you initiate an execution on a sequence without using a process model entry point, the Root property object is the sequence context for the sequence you run.

When you are editing a sequence, the expression browser does not display the sub-properties of Runstate.Root because these properties are filled in at runtime. They are dynamic properties.

Related Links:
TestStand User Manual

6 ratings | 3.50 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).