GP Rotary switches are designed to take the voltage from a rotary switch and convert it into an integer that can be used on a table axis. Converting to an integer and using that instead of just using the raw voltage means that any noise on the signal is ignored and so doesn't result in interpolation between columns on the table.

This function assumes that the Rotary switch has evenly spaced voltage values across its range.

 

The settings used by this input are listed below:

·Label - Used to note what this Rotary Switch is being used for.

·Source - Used to select the analog input that has been wired to the rotary switch.

·Positions - The number of positions on the rotary pot. Note if the pot starts at 0 and goes to 10 this would be 11 positions.

·Minimum Voltage - The voltage of the rotary switch when at it's lowest value.

·Maximum Voltage - The voltage of the rotary switch when at it's highest value.

·Minimum Position - The number of the lowest position. If the Rotary pot is numbered 1-10 this value would be 1 and the number of positions would be 10. If the rotary pot is numbered -4 to 5 the minimum position would be -4 and the number of positions would be 10.

·Error Value - The value the output will be set to when the analog pin goes into fault state (above error high, below error low or when it times out if using a CAN Analog).