NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm using TestStand/Labview to do a string value test. Is there any way to use a variable in the edit string value test?? This forces you to hard code a string to test against.

I'm using TestStand 2.0/Labview 6i to do a string value test. Is there any way to use a string variable in the edit string value test instead of an actual string?? This forces you to hard code a string to test against.
0 Kudos
Message 1 of 4
(3,380 Views)
You can add a pre-expression in the step properties dialog box for your string value test. Example:

Step.Limits.String = locals.expectedString
Message 2 of 4
(3,380 Views)
Hi ART,

You can also use the LimitLoader step to load your string into to step similar to the Numeric Step type.

There should be an example of this in the Resource Library | TestStand

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 4
(3,380 Views)
If you edit the step properties, then select the Expressions tab, you can enter a Pre-expression to set Step.Limits.String to whatever variable you want. Example: "Step.Limits.String = Locals.MyLimitString"
0 Kudos
Message 4 of 4
(3,380 Views)