QuickOPC User's Guide and Reference
LinearConverter Constructor(Double,Double,Double,Double,OffLimitBehavior,OffLimitBehavior,OffLimitBehavior,OffLimitBehavior)



OpcLabs.BaseLibComponents Assembly > OpcLabs.BaseLib.Components Namespace > LinearConverter Class > LinearConverter Constructor : LinearConverter Constructor(Double,Double,Double,Double,OffLimitBehavior,OffLimitBehavior,OffLimitBehavior,OffLimitBehavior)
X coordinate of the first point on the conversion line.
X coordinate of the second point on the conversion line.
Y coordinate of the first point on the conversion line.
Y coordinate of the second point on the conversion line.
Conversion behavior when the input value is off the X1 limit.
Conversion behavior when the input value is off the X2 limit.
Inverse conversion behavior when the input value is off the X1 limit.
Inverse conversion behavior when the input value is off the X2 limit.
Initializes an instance of the LinearConverter class.
Syntax
'Declaration
 
Public Function New( _
   ByVal x1 As Double, _
   ByVal x2 As Double, _
   ByVal y1 As Double, _
   ByVal y2 As Double, _
   ByVal offX1Limit As OffLimitBehavior, _
   ByVal offX2Limit As OffLimitBehavior, _
   ByVal offY1Limit As OffLimitBehavior, _
   ByVal offY2Limit As OffLimitBehavior _
)
'Usage
 
Dim x1 As Double
Dim x2 As Double
Dim y1 As Double
Dim y2 As Double
Dim offX1Limit As OffLimitBehavior
Dim offX2Limit As OffLimitBehavior
Dim offY1Limit As OffLimitBehavior
Dim offY2Limit As OffLimitBehavior
 
Dim instance As New LinearConverter(x1, x2, y1, y2, offX1Limit, offX2Limit, offY1Limit, offY2Limit)

Parameters

x1
X coordinate of the first point on the conversion line.
x2
X coordinate of the second point on the conversion line.
y1
Y coordinate of the first point on the conversion line.
y2
Y coordinate of the second point on the conversion line.
offX1Limit
Conversion behavior when the input value is off the X1 limit.
offX2Limit
Conversion behavior when the input value is off the X2 limit.
offY1Limit
Inverse conversion behavior when the input value is off the X1 limit.
offY2Limit
Inverse conversion behavior when the input value is off the X2 limit.
Requirements

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

See Also