NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify the XML report stylesheet to change properties of the TSGraphControl used to plot results?

There are 2 types of things I want to be able to do with the TSGraphControl in the XML stylesheet.
 
1. Change the plot type from a PlotY to a Plot XY to be able to plot a 2d array as a time based plot. By default 2d arrays get converted to 1d arrays, so the 2nd dimension gets appended to the 1st one.
2. Change colors, legends, axes...of the TSGraphControl to custmoize the appearance of the graph on the report.
 
By dropping an instance of the ocx control on a LabWindows panel and editing the control, I can see that there is a lot of properties available. How can I access & modify those properties programmatically from the XML stylesheet?
 
F
0 Kudos
Message 1 of 2
(3,190 Views)
Howdy Freak -
 
The XML stylesheets use the ActiveX control <TestStand Directory>\Components\NI\Tools\GraphControl\TsGraphControl.ocx.  However, looking into the available properties and methods for the control in Visual Basic 6, there is no method for PlotXY( ).  Thus, using this control, there would be no way to do the XY plotting (in fact, PlotY( ) seems to be the only method available for plotting in the control).
 
This graph object only contains a few valuable properties which can be set.  Appearance properties do not seem to be among them.  The two properties available which would change the look on the report are height and width.  These properties are best set when declaring the graph object in XML.  For example, on line 661 of horizontal.xsl, the graph object is set to have a height of 200 pixels and a width of 100% in the html file (Note: you can change width to just be pixels if you remove the percentage).
I hope this helps.
 
Regards,
Andrew W || Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,167 Views)