NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I access the START_DATE_TIME as a variable?

How do I access the START_DATE_TIME that is stored into the UUT_RESULT table in the database from a variable? I need to use this value from within a test client sequence and the process model.
0 Kudos
Message 1 of 2
(2,967 Views)
Hey,
 
The best place to find what properties are being used to populate a database's field is the Database Options window.  This is the same window you used to enable database logging.  To find the property that is populating the START_DATE_TIME field, select the UUT_Result table in the Statements tab of the Database Options window.  Click on the Columns/Parameters tab and select the the START_DATE_TIME property.  In the Expression textbox you will find the properties that are being used to populate that field.  In the case of START_DATE_TIME the property is:
 
Str(Logging.StartDate.Month) + "-" + Str(Logging.StartDate.MonthDay) + "-" + Str(Logging.StartDate.Year) + " " + Str(Logging.StartTime.Hours) + ":" + Str(Logging.StartTime.Minutes) + ":" + Str(Logging.StartTime.Seconds)
 
As you can see it is not a single property that is used to generate this information, but a number of different properties.
 
 
Regards,
 
Santiago D
0 Kudos
Message 2 of 2
(2,946 Views)