NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

XSL to display units for additional results

I am trying to modify the horizontal.xsl file to display units for the "Additional Results" of a numeric limit test. I added additional results as illustrated below.

 

TS interface for additional results.jpg

 

I also added attributes named "units" to those values that I want to be logged. The information shows up in the XML file as shown below, but rendering in a browser doesn't show the extra values.

 

xml code additional results.jpg

 

Below is the data rendered in IE using the horizontal.xsl file that ships with TestStand.

 

xml report with additional results.jpg

 

Does anyone know how to modify the stylesheet to get the "units" attributes to render?

0 Kudos
Message 1 of 4
(3,322 Views)

Just out of curiousity how did you get that in your XML in the first place?

 

You can get it to show up by removing the Attributes tags and changing the Flags to 0x2000.  If you look in the xsl for a function called AddPropertyToReport you will see what the different flags mean.  You may also have to move it outside of the VBG post-trim property tags as well.  The problem is it will show up on a different line.

 

Honestly the simplest way to do what you want is change your step type to Multi Numeric Limit and add 2 more limits for Rbias post-trim and VBG post-trim.  Then change the Comparison Type to No Comparison.

 

Unit is part of the NI_LimitMeasurement data type and I believe the xsl is only adding the Unit to the Unit column if the type is that.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 4
(3,309 Views)

I got that in my XML as follows: Notice above that the values being logged are locals. For each of those, I right-clicked the valus in the variable pane of TS and added a custom attribute named "Units." It just showed up after that. As you mentioned it would make more sense for the "Units" xml to be at the same level in the hierarchy as the variable property. 

 

I like your idea of using the Multi Numeric Limit step to accomplish this. I strayed from it initially because I don't want to display limits for these values since they are informational only. I didn't realize that there is a "No Comparison" option. I'll give that a shot when I'm back at the test lab next week.

 

Arthur 

0 Kudos
Message 3 of 4
(3,293 Views)

Using the multiple numeric limit test with "no comparison" gives me what I want in the report, so I'm going to move ahead with that. Thanks for the suggestion!

0 Kudos
Message 4 of 4
(3,267 Views)