NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

modify database schema and logging expression

I want to add more information to my TestStand database. For example I want to add the UUT Part Number to the database. Presently I collect the UUT part number in a station globals variable. I assume that I need to move this part number to the database local expression "logging.UUT.PartNumber" so that I can log this info, but I can't figure out how to add this variable. How do I create this variable?
Thanks in advance for any suggestions.
0 Kudos
Message 1 of 4
(3,349 Views)
In the process model (i.e. SequentialModel.seq) you can modify the custom data type "UUT". Go to the "Sequence File Types" window and select "Custom Data Types" and you will see the UUT container. Add a variable called "PartNumber". Then you will need to add a statement in your process model to assign the value of the part number. Go to the "Single Pass" sequence (and/or Test UUTs) and add a statement similar to "Locals.UUT.PartNumber = StationGlobal.PartNumber". The statement needs to be after the MainSequence call, assuming that is where the part number gets assigned.

The database logging utility automatically adds the UUT container to the Logging container, so you will now be able to access it as Logging.UUT.PartNumber when you configure your databas
e statement.
Message 2 of 4
(3,349 Views)
Hi,

Is it possible to take this process one step further and define a global custom UUT (not per one specific sequence file)?

Thanks
Rafi
0 Kudos
Message 3 of 4
(3,349 Views)
I may have not been very clear in my question...

I was talking about the process of defining a custom data type (UUT) in the 'Sequence File Types'.

Thanks
Rafi
0 Kudos
Message 4 of 4
(3,349 Views)