09-27-2023 05:22 AM
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?
Thank you for the help!
Best Regards,
Zuc
09-27-2023 07:45 AM
This is related to the style sheet you are using. If you switch it to tr6_report.xsl, you will find the module times
09-27-2023 09:02 AM
Hi,
but since i can't change stylesheet, how I can solve my question?
Best Regards,
Zuc
09-27-2023
09:42 AM
- last edited on
10-25-2024
04:38 PM
by
Content Cleaner
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
09-27-2023 10:00 AM
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)
Best Regards,
Zuc
09-28-2023 02:02 AM
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
09-28-2023 05:02 AM - edited 09-28-2023 05:06 AM
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