NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Display step result in UI SequenceView Control after it's executed

Hi, I add the one column and want to display the step result in SequenceView control. The result should be display depends on the steptype, if it's Numeric, then result is a number, if it's a string, then result is a string, etc. How can I do this?

 

Currently, I found I can check whether the property exits like

PropertyExists("ThisContext.Step.Result.Numeric")? ThisContext.Step.Result.Numeric:PropertyExists("ThisContext.Step.Result.String")? ......

 

However, this will cause the all the step result are displayed even it's not executed. How can I only display it after the step is finished?

 

By the way, How can I also display the Limits(Low and High) for Numeric step if I add a new column?

 

Thanks in advance

 

BR

Gavin Chen

 

 

0 Kudos
Message 1 of 3
(2,905 Views)

You should be able to determine if the step has been run by checking that the Step.Result.Status is an empty string or not. For limits you could maybe just do something like:

 

PropertyExists("Step.Limits.Low") ? Str(Step.Limits.Low) : ""

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 3
(2,894 Views)
Thanks, I will try it
0 Kudos
Message 3 of 3
(2,882 Views)