08-04-2011 04:58 PM
Hello,
I am trying to pass in an expression to Teststand. I have the simple expression: "<IMG ALT='My Graph Data' src='" + Locals.FileLocations.imagePath + "'>" . I am building this in labVIEW using concatenated strings and then pass it into Teststand to the string "locals.Expression". I then reference that variable in an teststand statement which says: Step.Result.ReportText = locals.Expression. The problem is that teststand is dealing with the string in a way that I was not expecting because my code does not respond the same as if were to actually put Step.Result.ReportText = "<IMG ALT='My Graph Data' src='" + Locals.FileLocations.imagePath + "'>" in the teststand statement. When i try to log locals.Expression (in order to debug the problem) it gives me an empty string and a broken image in the report. Can anyone point me in the right direction please??
Thanks Alot!
Adam
(For those who weren't aware the expression above is used to output the image of a graph into the report using Local.FileLocations.imagePath as the file location of a PNG picture file)
Solved! Go to Solution.
08-04-2011 09:49 PM
Set the expression to:
Step.Result.ReportText = Evaluate(Locals.Expression)
08-05-2011 07:09 AM
Perfect! Thank you