Scale and offset calculation example 1

You have a 6-to-9Vdc actuator to control with a VoltageOutputWritable, in terms of 0-to-100% input. Configure this point’s facets to have units: “misc,” “percent” (%).

Set the ProxyExt’s Conversion property to Linear, and enter these calculated scale and offset values:

  • Scale

    Scale = (y2 - y1) / (x2 - x1)

    Scale = (100% - 0%) / (9V - 6V) = 100/3 = 33.3333333

  • Offset

    Offset = y1 - (Scale * x1)

    Offset = 0% - (33.3333333 * 6V) = 0 - 200 = -200