Linear Scale

Scales a signal based on a straight line.

1378

Inputs/Outputs

datatype_icon

signal

Input signal.

This input accepts the following data types:

  • Waveform
  • 1D array of waveforms
  • Double-precision, floating-point number
  • 1D array of double-precision, floating-point numbers
  • 2D array of double-precision, floating-point numbers
  • 1D array of complex double-precision, floating-point numbers
  • 2D array of complex double-precision, floating-point numbers
datatype_icon

scale

Slope used for linear scaling.

The following equation defines linear scaling: , where m is scale.

Default value: 1

datatype_icon

offset

Intercept used for linear scaling.

The following equation defines linear scaling: , where b is offset.

Default value: 0

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

scaled signal

Result of scaling the input signal.

This output can return the following data types:

  • Waveform
  • 1D array of waveforms
  • Double-precision, floating-point number
  • 1D array of double-precision, floating-point numbers
  • 2D array of double-precision, floating-point numbers
  • 1D array of complex double-precision, floating-point numbers
  • 2D array of complex double-precision, floating-point numbers
datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior