From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand Waveform Graph adding own graphics

Solved!
Go to solution

Hello everyone,

I just started using NI Teststand to verify if it will suite my needs. My aim is to make a simple leaktest machine that will take measure from few sensors and display it in a fancy report.. I am gathering data with AI modules cRio, do some analysis, check for PASS/FAIL, usual stuff...

 

I was wondering - is it possible to plot additional graphics on Waveform graph plot in teststand html report. This is an example report that I created (just a sin wave): report.PNGThe data are coming from my VI as 1D array. This is the VI:pic_plot.PNG

And this is how the front panel looks like:graphwaveform.PNG

As you can see by creating a Property node I can draw an image on the Waveform Graph. I can display a pass/fail window directly on the graph. That image can be also assigned to an output from VI to teststand. Marked with red arrow in second picture on the right.

picture.PNGteststand_input.PNG

Is there a way to plot that picture on Teststand report? Is it there any expression (function) that could join both values and plot it on the same graph?

 

Any help would be much appreciated! 

Cheers!

0 Kudos
Message 1 of 6
(3,521 Views)
Solution
Accepted by topic author WalorKojtyla

Call the attached VI and assign the output to your report text for the step (Step.Result.ReportText).  Run the sequence and see if you like what is on the report.  Then analyze what I have done in the VI and apply that same stuff to your code.

 

Hopet his helps,

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

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

Probably a better way to do it is to use an additional result but the reporttext is just an easy way to do it without much thought.  The advantage of additional result is that you can name the graph instead of it just saying ReportText.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 6
(3,425 Views)

I tried this with an additional result, but the report doesn't parse the HTML. It just shows the text with the <img src....

 

Is there a trick to get it to interpret the image as an additional result? It does work when I write the string to ReportText.

0 Kudos
Message 5 of 6
(3,072 Views)

I may have misspoke.  It looks like the report generation is swapping out the < sign for &lt;...etc...

 

Additional results may not work without tweaking the report generation to not do that.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 6 of 6
(3,070 Views)