NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting columns in SequenceView Control

Hello,
 
   I have a CVI operator interface with a SequenceView control. On the control are columns for the high and low limits, measurement, and step execution time for each test step. When I run the OI in "Test UUTs" mode, the values of these columns do not reset (i.e. clear) when I run a second UUT. Is there a command, or method,  to clear the columns in a SequenceView control prior to the start of UUT test?
 
  Thank you in advance for your time and response.
 
Thank you,
Jim
0 Kudos
Message 1 of 3
(3,246 Views)
Howdy Jim -

There is not a specific method call that clear  the limits, measurements, etc. in the columns of the sequence view.

One option would be to close and open the sequence file in one of the callbacks.  This of course would cause some delays in the execution, but it should clear all of the columns that are assigned values at runtime.

I would recommend using a property loader step to explicitly reset any values you wish.  You could use a property loader step in the setup of a sequence to complete this task.  I realize that this introduces its own problem in the it is a step that is seen in the sequence view when it is executed.  Additionally, the other caveat would be that the columns are not cleared, they are just set to "default" values.  However, there just doesn't seem to be a really clean solution to this issue.

If you have any more questions, or would like some more information, please let me know.

Have a great day!

Regards,
Andrew W || Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,220 Views)
Hi Jim,

I had similar problem and I solved it by changing the column expression (can be accesed from the UI editor). For example for the MEASUREMENT column the original expression is
PropertyExists("Step.Result.Numeric")? Str(Step.Result.Numeric) + "  " + Step.Result.Units + " (" + Str(Step.Limits.Low) + " " + Str(Step.Limits.High)  + ")":""

and after the modification
((Step.Result.Status != "") && PropertyExists("Step.Result.Numeric"))? Str(Step.Result.Numeric) + "  " + Step.Result.Units + " (" + Str(Step.Limits.Low) + " " + Str(Step.Limits.High)  + ")":""

In effect the measurement and limits are displayed after the test step has been executed and current values are available.

Michal
0 Kudos
Message 3 of 3
(3,199 Views)