NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Operator not working as expected in Post Expression

StationGlobals.test_Data=(Step.Result.Error.Occurred?Step.Result.Error.Msg:StationGlobals.test_Data)

 

In the above expression,i am expecting  StationGlobal.test_Data=Step.Result.Error.Msg when error occurs,but i am not getting result as i expected in post expression

0 Kudos
Message 1 of 2
(597 Views)

If you look at the step actions here: https://zone.ni.com/reference/en-XX/help/370052AA-01/tsfundamentals/infotopics/step_execution/

 

At the bottom of the page it describes what happens when an error occurs.  My guess is that your post expression is not actually being evaluated.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 2
(565 Views)