05-20-2021 09:14 AM
There are times when we might use TestStand to load data to the database for a test which occurred previously. In this case the start_date_time would need to be set programmatically. Is there a way to do this?
Solved! Go to Solution.
05-21-2021 06:47 AM
Hi, Can you elaborate your requirements bit more.
Regards,
Dharani | CLA | CTD
05-21-2021 10:50 AM
I figured it out. Posting solution here to support community.
From within Main sequence you can set time in this way:
RunState.Root.Locals.StartDate.Year = Locals.Year,
RunState.Root.Locals.StartDate.Month = Locals.Month,thin M
RunState.Root.Locals.StartTime.Hours = Locals.hour,
RunState.Root.Locals.StartTime.Minutes = Locals.minute,
RunState.Root.Locals.StartTime.Seconds = Locals.second,
RunState.Root.Locals.StartTime.milliseconds = Locals.millisecond