NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Time of execution of steps

Solved!
Go to solution

Correction, that statement ISN'T valid until run-time

 

Sorry about that!

0 Kudos
Message 11 of 15
(1,282 Views)

Yeah, but that isn't explaining the the error showing in the first or 2nd pictures, or what I put in messages 8 or 9 - any ideas on those?

Thanks,

-Bill

0 Kudos
Message 12 of 15
(1,276 Views)

I found a way that is close enough - on the step whos time I want to record, I put a pre expression of Locals.Start_Time = seconds(), then I put a post expression of Locals.Step_Execution_Time = seconds() - Locals.Start_Time - when stepping through the code, my calculated time looks to be consistently within 40 microseconds of both the TotalTime and ModuleTime.

 

What is the difference between TotalTime and ModuleTime?

0 Kudos
Message 13 of 15
(1,269 Views)

Hi Bill,

 

Module time refers to how long it took to execute the code module called by the step.  Total time refers to the total time the step took to complete, including pre and post expressions, the module and other operations the step executes

0 Kudos
Message 14 of 15
(1,267 Views)
Ok - thanks!
0 Kudos
Message 15 of 15
(1,254 Views)