NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

"Expected String Value" and Variable

I'm using TestStand 3.0 and have a Win2K box.  Is it possible to enter a variable (ThisContext.Locals.CompHex) in the box next to Expected String Value in the Edit String Value Test box?   I want to compare what I have in the above variable with Step.Result.String.  Earlier in the sequence file I capture the variable ThisContext.Locals.CompHex and save it as a string.  Then later after reading memory I want to compare what's in memory "Step.Result.String" with ThisContext.Locals.CompHex.  Hope this is clear enough. 
 
Tony 
0 Kudos
Message 1 of 2
(3,522 Views)
Howdy Tony,
 
Currently as of TestStand 3.5, you can't enter an expression in for the Expected String Value option. This has been sent in as a product suggestion to our R&D team.
 
However, one workaround is to use a Pre-Expression to set that string value property. So, in your Pre-Expression for that string test step, you could say Step.Limits.String = ThisContext.Locals.CompHex.
 
Hope this helps!
 
Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(3,508 Views)