Linear Scale

logic · C327 · starter-package 7.0.1

Purpose

Map one value from an explicit source range to an explicit target range.

Connectors and setting

  • Inputs: Value, Source start, Source end, Target start, and Target end (finite numbers).
  • Outside source range: Extrapolate or Clamp.
  • Output: Result (number).

Example

Mapping 5 from 0…10 to 0…100 returns 50.

Exact settings reference

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
outsideOutside source rangetoggleextrapolateoptions: Extrapolate (extrapolate), Clamp (clamp)

Failure cases

Equal source endpoints, invalid numbers, unknown settings, and non-finite results stop execution. Reversed ranges are supported.

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputvalue — Valuenumberyes
InputsourceStart — Source startnumberyes
InputsourceEnd — Source endnumberyes
InputtargetStart — Target startnumberyes
InputtargetEnd — Target endnumberyes
Outputresult — Resultnumberon success