11-10-2008 04:24 AM
Hello,
i want to log the start time of each step to my sql datatbase. With the UUT start time it works (Str(Logging.StartDate.Month) + "-" + Str(Logging.StartDate.MonthDay) + "-" + Str(Logging.StartDate.Year) + " " + Str(Logging.StartTime.Hours) + ":" + Str(Logging.StartTime.Minutes) + ":" + Str(Logging.StartTime.Seconds)).
But how can i make it with the start time of the steps?
greetings
schwede
TS 3.0
11-11-2008 08:12 AM
Hello Schwede,
you could check the following thread for some information how to get the step time duration, etc. with TestStand: http://forums.ni.com/ni/board/message?board.id=330&message.id=16146&requireLogin=False
I hope this information helps.
Best regards,
Blase
11-11-2008 08:29 AM
Hello Blase,
thankyou, but this didn`t help. If i use this i must change every sequence (and step!).
I need an expression for the database option.
greetings
schwede
11-11-2008 10:04 AM
Hello,
you can get the the information from the
Logging.StepResult.TS.StartTime parameter.
i.e. copy the MODULE_TIME (included in the STEP_RESULTS) and paste it. Change the expression to Logging.StepResult.TS.StartTime
i hope this helps
Tobias
11-27-2008 03:18 AM
Hello,
how can I convert this informationen to datetime (like this: (Str(Logging.StartDate.Month) + "-" + Str(Logging.StartDate.MonthDay) + "-" + Str(Logging.StartDate.Year) + " " + Str(Logging.StartTime.Hours) + ":" + Str(Logging.StartTime.Minutes) + ":" + Str(Logging.StartTime.Seconds))?
thanks
schwede
12-30-2008 12:31 PM
02-18-2009 05:15 AM
Sorry,
but this is no solution. look at my answer before.
greetings schwede
02-18-2009 07:37 AM - edited 02-18-2009 07:37 AM
Schwede,
see attached Sequencefile for an example what Ryan is talking about.
We use Additional Results to transfer the Timestamps to the ResultList (which is the origin for "Logging" ). You can include the Locals.StepDate, Locals.StepTime with other methods as well to the ResultList. I used the PostExpression of the last Statement to draft this.
hope this helps,
Norbert
[EDIT] PS: The SequenceFile is created in TS 4.1
04-08-2009 02:59 PM
Is there a way to creat one PreStep and PostStep func that that Test Stand executes for all the steps in a Seq?
Then StepStartTime and StepStopTime can be recorded in the Step data?
Thanks
04-24-2009 04:41 AM
So I must modify all my sequences and steps. That is not the solution for me.
I use TS 3.0.