NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Display Test Time In Minutes

I am working in TestStand 2016 (32-bit).  I am trying to have my html summary report show my test time in Minutes instead of seconds.  I updated the CustomStrings found in C:\Users\Public\Documents\National Instruments\TestStand 2016 (32-bit)\Components\Language\English, and added the RPT_Header_MINUTES = " minutes" that I use in the "Add Execution Time" step within the reportgen_html.seq.  I thought I found where to divide the test time by 60s to get minutes, but it's not making it to the end.  In the process model (a modified version of the sequential model), after the MainSequence Callback, I added a step.  I saw (in another thread) that the Locals.ResultList[0].TS.TotalTime has the time I am looking for, so I created a second local variable (shown below) to capture the original time, then I divide by 60 and store it back.  I tried it all as one line originally, but it didn't work so I tried this (also doesn't work).  My example is a quick test, only a couple of minutes, but real tests are much longer, so this becomes a bit irritating for the customer.

Locals.ResultList[0].TS.TotalTime = Locals.TempTotalTestTime/60.0

I have attached several images that show the results.  Any thoughts on why the debug shows the right info in [0] (after the divide by 60), but then doesn't show up at the report?

Incidentally, I am seeing an error in the analysis of the process model file, but it seems to run (as I show).  Here is the message.

Message : Unknown variable or property name 'Locals.ResultList[0].TS'.

File : C:\ProgramData\National Instruments\TestStand 2016 (32-bit)\Cfg\SequenceFileModels\OutOfTheBoxSeqModel_WithMode_4.seq

Location : Seq["Test UUTs"].Main["Attempt to change test time to minutes"].TS.PostExpr

Rule : Expressions must evaluate to a value of the expected type

Description : Each expression property must not include syntax errors and must evaluate to a value of the type the property expects.

P.S. I am also not able to capture the operator, so any ideas on that would be appreciated.

Download All
0 Kudos
Message 1 of 3
(2,462 Views)

I did continue to step over all the subsequent steps in the process model, and the 'Locals.ResultList[0].TS'. didn't change (i.e. it shows the correct minute calculation), so I'm thinking the 'Locals.ResultList[0].TS' is not (ultimately) what teststand uses to populate the Execution Time.  However, I am still not sure how to accomplish my objective.

0 Kudos
Message 2 of 3
(2,439 Views)

It seems to work now.  The only thing I can attribute this to is that I completely closed/re-opened TestStand.  I know I did that during all of this experimentation, but it's 'possible' that I only did it when I was monkeying around with the report options.  Regardless, the time now appears in Minutes.

 

P.S. I am still having the issue where the Operator (in the html report header) says "No operator logged in".  Any thoughts?

0 Kudos
Message 3 of 3
(2,433 Views)