NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

ModuleTime in Step Callback

hi all,

 

I save the results of my steps in diadem using  " SequenceFilePostResultListEntry  " callback.

 

I am able to read the results from the  calling step or subseq   in my resultlist callback & save them in tdm format.

The  problem is  reading  ModuleTime.

 

Tried  diff ways , the  Expr. below gives inconsisten results.

RunState.Caller.Locals.ResultList[0].TS.ModuleTime

 

has anyone  worked on similar situations.

 

also  I was unable to find the Date format  in Teststand.  I have to  channel this date info to a  VI which writes the TDM file.

0 Kudos
Message 1 of 3
(4,018 Views)

Try:

 

PropertyExists("Parameters.Result.TS.ModuleTime") ? Parameters.Result.TS.ModuleTime : 0

 

You should not be accessing RunState.Caller.Locals.ResultList from the SequenceFilePostResultListEntry. The most recent result for the result list is already given to you as a parameter to the callback (i.e. Parameters.Result).

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 3
(4,001 Views)

thanks Doug!    that was it.

 

 

0 Kudos
Message 3 of 3
(3,996 Views)