NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Access on step.result.string in post expression fails

I try to copy the content of Step.Result.String in the post expression of a string value test to a local variable. Data.Source of this step is not the default value. The first time the step is executed, the local stays empty. If the step runs a second time (Test UUTs or break & set next step), the post expression works.
The attached sequence demonstrates this bug. Watch as "StringValueTest2" fails the first time and passes after this. I'm using Teststand 2.0.1
0 Kudos
Message 1 of 2
(3,071 Views)
Hi,
Step.Result.String is updated in the "status expression" :(Step.DataSource != "Step.Result.String" ? Step.Result.String = Evaluate(Step.DataSource) : False;), but you update the "Locals.dummy" in the post expression witch is executed just before the status expression.
Then try "Locals.dummy = RunState.PreviousStep.Result.String" in the pre-expression of the second test and it will work.

Slts
JMC
JMCe
0 Kudos
Message 2 of 2
(3,071 Views)