10-21-2005 08:41 AM
10-24-2005 12:36 PM
Bojer,
You can use the step pre-expression and post-expression to calculate the "module time".
Check the Step Execution section in chapter 3 of the TestStand Reference Manual.
This section contains a list with the order of actions a step performs while executing.
The pre-expression is evaluated before calling the step's module.
And the post-expression is evaluated after the code module is executed.
The "Seconds() " function returns the number of seconds that have elapsed since an initial base time.
So you could use this function to calculate the "Start Time" in the pre-expression and use it again in the post-expression to calculate the "End Time".
In order to obtain the "Module Time" you only have to subtract the Start Time from the "End Time".
The time you obtain using this methods not really the module time because the Pre-step substeps for the step type are called after the pre-expression is evaluated and the post-step substeps are called after the module is called. The overhead added by these steps should be minor for an action step though.
Order of actions that a step performs.
11-Evaluate Pre-Expression.
12-Call Pre-Step substeps for step type.
13-Call Module
14-Call Post-Step substeps.
15-Evaluate Post-Expression
Check the attached sequence.
Hope it helps.