en-us_commands:analog_input
Analog Input Built-in Commands
Check the voltage, current or temperature input mode configured for your product and channel first. Reading a raw value and scaling a value serve different purposes.
| Goal | Commands |
|---|---|
| Read a raw analog value | analogRead() |
| Average multiple samples | analogReadAvg() · analogReadAvgf() |
| Scale an input range | IanalogRead() · IanalogReadf() |
| Read or scale a 4–20 mA input | analogRead2() · IanalogRead2() · IanalogRead2f() |
| Read NTC or PT100 temperature | ntcRead() · ntcReadf() · pt100Read() |
On MPAINO, each X analog input channel's DIP setting determines its input mode. Check the X module details for settings and wiring.
en-us_commands/analog_input.txt · Last modified: by 127.0.0.1
