NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I insert XY-Graphs into (HTML-)report IN TS3?

Hi,

I'm still learning TS3 after a full year ;-(.

Many of 'my' test provide some characteristics as kind of XY-graphs. I handle them as 2D-arrays. This occupies an extraordinary amount of room in the report when reported as table, as all values are reported in a single line. Or there's a more or less senseless graph with two curves.
Is there an easy way to get a true XY-graph or a true 2D table into the report? I could provide such a graph in LV, save it as graph file and include it into the report (KB2ORG4KVW). Similar with text lists. But this sounds rather complicated and inflexible. Are there any better Solutions?

Greetings from Germany!
--
Uwe
0 Kudos
Message 1 of 3
(3,341 Views)
Uwe,

If you check the code for the report (right click on the report web page and go to View->Source) you are going to find the following code (or similar):

id=TSGRAPH1 style="LEFT: 0px; TOP: 0px" width=100%>


This piece of code is embedding and ActiveX control into the report. This control has a method called PlotY that is creating the trace on the graph. An array with all the values passed by Teststand is included. You can use the callback ModifyReportEntry to check if the current entry is the one with a 2 D array. If that is the case, then you can override the c
ode generated automatically by Teststand (the one above) with your own. You will have to use another ActiveX control to plot XY data. You can create the control on Visual Basic (easiest way to go) or you can look for a control that already provides this functionality on the web. Then you can embed the control in a similar fashion and have it plot the XY data.

I hope this information will help you out on your development.

Best Regards,

Alejandro del Castillo
Application Engineer
0 Kudos
Message 2 of 3
(3,269 Views)
Alejandro,

thanx for that hint. I'll check it out, allthough I'd have xpected something like this as a build-in feature. Same for some kind of tables of values.
I have created my own solution for such tables for ASCII txt reports and HTML reports and this works quite well.
I'll check for that graph solution sometimes when There is time to do so or a special need for it.

Greetings from Germany!
--
Uwe

ps: If someone is interested in my solution contact me at u.frenz at getemed dot de (replace at and dot - I dislike to publish my email adress and get spammed)
0 Kudos
Message 3 of 3
(3,269 Views)