NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying the module time for each step?

Hi community,

 

I need the moduletime to be displayed for each step in my sequence and not just for the ones I have the result recording turned on.

 

 

Is it possible and if yes, how?

 

thanks!

0 Kudos
Message 1 of 8
(5,280 Views)

You need some customization of the report generation.

If you disable result recording for steps, they will not show up in the result list. This reduces the size of the result list (hence improving performance) but prevents report generation to ever know that that step was executed at all. That means: With result recording disabled, you will never get the time in the report using standard reporting.

I recommend you to enable result recording for steps you need the module time in the report and to customize the report generation to remove everything except the desired information for this step(s). The module time is automatically included if you select the option to "Include Execution Times".

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 8
(5,239 Views)

Thanks for your response. I think I was not clear enough with my questions: I dont want the execution times to show up in the reports, I'd just like to observe them while my sequence is running. Currently the module time (a column in the execution window next to the pass/fail/done indication) is only displayed for the steps I have the result recording turned on.

 

I there a way to display the exec time for all the steps in the execution view?

0 Kudos
Message 3 of 8
(5,222 Views)

Are you referring to these numbers (module time)?

ExecutionTimes.PNG

 

If so, these numbers are exactly what i was talking about.

If not, i don't know what you are talking about....

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 8
(5,216 Views)

Yes, I am referring to those. So are you saying there are no way to display them (not logging them, just displaying), if logging is not set for the given step?

0 Kudos
Message 5 of 8
(5,214 Views)

I've not found any detailed information on this, but here is what i think:

The ResultList entry for each step is including a hidden container TS. If that step calls a module, the module time is stored there.

When disabling result recording for a step, module time might be calculated (start and end time), but it is not stored in the TS execution data set. Therefore, the UI, which handles the UIMsg_Trace simply cannot look up that value.

I might be wrong on this assumption, but it explains why you get module time for steps (with modules) when they are recording their results vs. not getting module time for steps where you disable result recording....

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 6 of 8
(5,208 Views)

Well explained, thanks.

Its a bit frustrating that such trivial thing is such complicated to get 😞

 

 

0 Kudos
Message 7 of 8
(5,179 Views)

Hello All,

 

I have just dig out this topic, trying to achieve similar results.

 

After tweaking inside I noticed that You can actually replace "TS.ModuleTime" with "TS.TotalTime":

KamilKosAPT_0-1691136205736.png

 

 

Here is the result:

KamilKosAPT_2-1691136365844.png

 

Enjoy!

 

 

0 Kudos
Message 8 of 8
(1,943 Views)