NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Unknown variable or property name 'Step.Result.TS'.

I am trying to add the start time for each step in a sequence to the report using an overrided version of the callback sequence SequenceFilePostResultListEntry.  According to

 

http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/standard_result_props/

 

I should be able to access the step start time using Step.Result.TS.StartTime.  However I keep getting the error "Unknown variable or property name 'Step.Result.TS'".  I am using TestStand 2014 32 bit on Windows 7 64 bit Professional.

 

Thanks

 

 

0 Kudos
Message 1 of 5
(2,998 Views)

That only gets put in the resultlist.  It is never part of the step object.  So you will have to look at Locals.ResultList[<index>].TS.StartTime.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(2,997 Views)

Thanks for the answer.  From what you said I was able to piece together that using the expression

 

Locals.nStepStartTime=Parameters.Result.TS.StartTime

 

inside the callback "SequenceFilePostResultListEntry" gave me access to the step start time in the ResultList and I am able to write the value to the report.  However I am still not sure what the most efficient way is to convert it from a relative time in seconds to the local Windows PC absolute time.

 

Thanks again

 

0 Kudos
Message 3 of 5
(2,976 Views)

Adding Engine.SecondsAtStartIn1970UniversalCoordinatedTime will convert to an absolute time in the time-base commonly used in C programming.

If the functions you want to use require a different time base, you can add the appropriate offset from midnight (00:00:00), January 1, 1970 to the desired time-base.

0 Kudos
Message 4 of 5
(2,973 Views)

Thanks for the response.  I was able to get the result I needed by adding

 

Parameters.Result.TS.StartTime+RunState.Engine.SecondsAtStartIn1970UniversalCoordinatedTime

 

giving me the number of seconds since 1970. I wasn't quite able to figure out how to convert this into a standard MM/DD/YY HH:MM: SS date/time format only using TestStand, so I passed it to a LabVIEW VI, added 2082844800 seconds to account for the difference in LV's 1904 reference vs TS's 1970 reference, and using the "To Time Stamp" function to get my final result.  Doing all this in the SequenceFilePostResultListEntry callback.

 

0 Kudos
Message 5 of 5
(2,915 Views)