Skip to content

Analog inputs (ADC)

Overview⚓︎

Many of our products have analog inputs. On the MX-4 platform they are accessible under /opt/hm/pic_attributes/ (see below). Otherwise we use the standard Linux Industrial I/O Subsystem. You can then access the ADC from sysfs, typically /sys/bus/iio/devices/iio\:device*/.

Platform specific⚓︎

Example⚓︎

IIO

cat /sys/bus/iio/devices/iio:device0/*DIG_IN_AN_8_raw
MX-4
cat /opt/hm/pic_attributes/analog_1