NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Execution Time

Hi,

 

I need to access to the variable related to the Execution Time reported in the TestStand Report header when the Execution Time option is enabled, but I can’t find it. Where I can search for that value? Is it the total time that the Engine takes to execute the Main Sequence or I’m completely wrong?

 

Zuc_Lab_0-1695810093070.png

 

Thank you for the help!

 

Best Regards,

Zuc

0 Kudos
Message 1 of 7
(1,534 Views)

This is related to the style sheet you are using. If you switch it to tr6_report.xsl, you will find the module times

0 Kudos
Message 2 of 7
(1,512 Views)

Hi,

 

but since i can't change stylesheet, how I can solve my question?

 

Best Regards,

Zuc

0 Kudos
Message 3 of 7
(1,497 Views)

Can't change the stylesheet as in "I need to use this layout"?

You can actually modify the stylesheet

 

https://www.ni.com/docs/de-DE/bundle/teststand/page/atml-report-style-sheets.html

 

 

0 Kudos
Message 4 of 7
(1,491 Views)

Hi,

 

i have to use the tr6_horizontal.xsl stylesheet so i need to figure out where to find the total time without computing it for each step.

I have found that during RunTime in the sequence ModelSupport.seq to Call Model Plugin - Post UUT it is passed a reference to Main Sequence Call back (see the image below) that inside the TS variable has the Total Time. I need to have that information accessible also from the Callback PostUUT (i'm using the TestUUT entry point)

 

Zuc_Lab_0-1695826723431.png

 

Best Regards,

Zuc

 

0 Kudos
Message 5 of 7
(1,489 Views)

You could as well use the low-level approach.... 

Get the start time (code module?) as the first step in the Setup Section of the sequence and in the cleanup section, get the actual time, calculate the time diff and add it as an additional result to the report?

 

Will solve the issue only for this sequence though

0 Kudos
Message 6 of 7
(1,469 Views)

Hi,

 

i have found this solution:

 

1. add the PostMainSequence Callback

2. in the parametrs there is MainSequenceResult

3. in PostMainSequence Callback assigne with a statement step the MainSequenceResult to a global variable

4. from every sequence (in my case the PostUUT callback) in the FileSequence you can now obtain the MainSequence Callback Total Time with a statement step like:

 

          Locals.TotalTime = #NoValidation(FileGlobals.MainSequenceResultReferences.TS.TotalTime)

 

I suppose that the best part of this approach is that you don't have to modify the SequentialModel.seq, or any kind of model that you are using, and you don't have to add other operation post step.

If anyone has any advice for improving my method i will be happy to try it!

 

Best Regards,

Zuc

Message 7 of 7
(1,461 Views)