NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

LinearScale Constructor

  • Updated2023-02-21
  • 1 minute(s) read
LinearScale Constructor
Initializes a new instance of the LinearScale class that scales values using the equation y = mx + b, where x is the prescaled value, and y is the scaled value.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

public LinearScale(
	string name,
	double slope,
	double yIntercept
)
Public Sub New ( 
	name As String,
	slope As Double,
	yIntercept As Double
)

Parameters

name
Type: SystemString
The name of the custom scale for later use, such as when you create a virtual channel.
slope
Type: SystemDouble
The slope, m, in the equation.
yIntercept
Type: SystemDouble
The y-intercept, b, in the equation.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

The equation is identical for input and output. If the equation is in the form x = my + b, you must first solve for y in terms of x.

See Also

Log in to get a better experience