NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding images to the teststand report

I have seen the other description of how to add a report to teststand, shown below,
Step.Result.ReportText = My Picture

but I want to be able to add many different images from many different file locations specified as FileGlobals.Image1.

How do you combine the HTML with the Teststand statement. I imagine it is something like this below, but this doesn't work.
Step.Result.ReportText = "Field of View Image"
0 Kudos
Message 1 of 5
(4,493 Views)
Hi ADL,

Your expression should be :-

Step.Result.ReportText = "Field of View Image""

StationGlobals.LastImagePath will contain the full pathname to the file or relative pathname.
e.g StationGlobals.LastImagePath = "c:\temp\myimage.gif" or
StationGlobals.LastImagePath = "myimage.gif"

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 5
(4,493 Views)
Ray,

Thanks for the reply, but you have 7 sets of quotes in the expression.
I copied the text in directly and teststand gives an "Unexpected Token: Field" error when checking the syntax.
0 Kudos
Message 3 of 5
(4,493 Views)
Hi,

sorry about that,

I have attached an example

Regards
Ray Farmer
Regards
Ray Farmer
Message 4 of 5
(4,493 Views)
Thanks Ray that worked a treat.
0 Kudos
Message 5 of 5
(4,493 Views)