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:
|
|||||
|
|||||
To select a measurement, it must be enabled. |
|||||
For some measurements, only the Output tab is displayed. |
|||||
|
|||||
Refer to the table above for a list of the filters. |