NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Dealing with TestStand Expressions in LabVIEW

Solved!
Go to solution

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)

0 Kudos
Message 1 of 3
(3,187 Views)
Solution
Accepted by topic author apmsj08

Set the expression to:


Step.Result.ReportText = Evaluate(Locals.Expression)

Message 2 of 3
(3,180 Views)

Perfect! Thank you

0 Kudos
Message 3 of 3
(3,170 Views)