Part 22— Analog Scaler
The Analog Scaler in Crestron SIMPL Windows is used to scale analog values. It adjusts an input signal (ain) according to a defined span, divisor, and offset, and outputs the scaled value as aout. This scaling allows you to take one range of values and translate them into a different range, which is useful when integrating devices or systems that operate on different analog ranges.
span:
This is the range of values that ain will be scaled to. For example, if your input range is 0 to 100% (or 0 to 65,535d) but your device requires values between 5 and 30, the span would represent that output range (30d — 5d = 25d).
offset:
This defines the minimum value for aout. For instance, if your input is 0 to 100%, but you want the output to start at 5, your offset will be 5.
divisor (optional):
This parameter allows for more precise control over scaling, often used when your output range is smaller than the input range. If not defined, the default value is 65,535d.
Divisor is useful when your input range is much larger than your desired output range and you want to maintain precision in the scaling.