QuickOPC User's Guide and Reference
LinearConverter Class
Members 



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Components Namespace : LinearConverter Class
Converts values using a linear function.
Syntax
'Usage
 
Dim instance As LinearConverter
Remarks

The LinearConverter component provide a linear conversion and its inverse, and also (optionally) allows output value clamping. The linear conversion is useful for proper scaling of values when the underlying value source does not directly have the desired value.

You configure the parameters of the linear conversion so that the X1 value converts to Y1, and the X2 value converts to Y2. Other values are interpolated or extrapolated according to these settings.

For values that fall outside the given limits, you can choose one of the following behaviors:

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         OpcLabs.BaseLib.Widgets.Widget
            OpcLabs.BaseLib.Components.LinearConverter

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2012 R2, Windows Server 2016; .NET: Linux, macOS, Microsoft Windows

See Also