Filters

Filters can be applied to measurement values before they are output from the Gocator sensors.

All measurements provide filter settings under the Output tab. The following settings are available.

Filter

Description

Scale and Offset

The Scale and Offset settings are applied to a measurement value according to the following formula:

 

Scale * Value + Offset

 

Scale and Offset can be used to transform the output without the need to write a script. For example, to convert the measurement value from millimeters to thousands of an inch, set Scale to 39.37. To convert from radius to diameter, set Scale to 2.

For more information on scripts, see Scripts.

Hold Last Valid

Holds the last valid value when the measurement is invalid.

Smoothing

Averages the valid measurements in the number of preceding frames specified in Samples. Use this to reduce the impact of random noise on a measurement's output.

If Hold Last Valid is enabled, the smoothing filter uses the last valid measurement value until a valid value is encountered.

Preserve Invalid

When enabled, smoothing is only applied to valid measurements and not to invalid results: invalid results are not modified and are sent to output as is.

When disabled, smoothing is applied to both valid and invalid results. (This setting is only visible when Smoothing is enabled.)

If Hold Last Valid is enabled, results will always be valid, in which case this setting does nothing.

To configure the filters:

1. Go to the Measure page by clicking on the Measure icon.

The scan mode must be set to the type of measurement you need to configure. Otherwise, the wrong tools, or no tools, will be listed on the Measure page.

2. In the Tools panel, click on a tool in the tool list.
3. In the measurement list, select a measurement.

To select a measurement, it must be enabled. See Enabling and Disabling Measurements for instructions on how to enable a measurement.

4. Click on the Output tab.

For some measurements, only the Output tab is displayed.

5. Expand the Filters panel by clicking on the panel header or the button.
6. Configure the filters.

Refer to the table above for a list of the filters.