NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I exclude Comparison Type in the test report?

I wish to present measurement and limits of a numeric limit test but not the comparison type. In Properties/Expression/Status expression I can see the choosen properties but not change them, how do I make this Status Expression applicable.
0 Kudos
Message 1 of 5
(4,305 Views)
Annulla,

The answer depends on whether you are using TestStand 1.0.x or 2.0. I will assume you are using TS 2.0. Let me know if otherwise.

It is important to understand how report generation works. There are two parts to report generation - collection of the step results and creating a report for the collected data. As a sequence executes the values of subproperties in the Step.Result container of each step are AUTOMATICALLY collected in the Locals.ResultList array. In addition, I few extra step properties are collected including Step.Limits and Step.Comp. These extra step properties are collected because of the steps "Include Limits in Results" and "Include Comparison Type in Results", which are located in your process model.

So, one solution to your problem is to open your process model, right click on the "Include Comparison Type in Results" step, and select Run Mode>>Skip. If the comparison type isn't collected then it can't be included in the report.

After step values have been collected in the Locals.ResultList array, the array is recursively searched for values that should go into the report. What deterimes whether a value should go into a report is the flags of its property.

In TestStand 2.0 the Step.Comp and Step.Limits properties of the Numeric Limit Test step type have the IsLimits and IncludeInReport flags enabled. You can view this by going to these properties, right clicking and selecting Properties from the properties context menu, and then clicking on the Advanced button on the Properties dialog box.

The IncludeInReport flag tells the default report generation to inlude the property in the report. The IsLimits flag tells the report generation that the property is associated with a set of limits. You will notice that in the report options (select Configure>>Report Options) you have the option of including or excluding limits of a step. This option only affects step properties that have the IsLimits flag enabled.

So, now you know some of the details involved. Other solutions include
-Choosing not include any limit values by configuring the Report Options accordingly.
-Copying the NI Numeric Limit Test step type and disabling the IncludeInReport flag for the Step.Comp property in your copy.
-You could also do things programmatically to turn off the property at runtime, but I wouldn't recommend this.

The solution depends on what you really want. Let me know.
0 Kudos
Message 2 of 5
(4,305 Views)
Thanks, problem solved!
/Annulla
0 Kudos
Message 3 of 5
(4,305 Views)

Hello!

can anyone attach a screenshot, where I can find the "Include Comparison Type in Results" step, please?

 

Thanks a lot,

 

greetings,

Patrick Barth

0 Kudos
Message 4 of 5
(3,913 Views)
 

Hey Patrick,

"The step "Include Comparison Type in Results" is located in the "Setup Result Settings" sequence which belongs to the "ModelSupport.seq" sequence file. This file is located in the <TestStand>\Components\NI\Models\TestStandModels directory."

I also attached a screenshot if you need further clarification. Hope this helps!

Regards,

Lars

 
Message 5 of 5
(3,893 Views)