User manual

Copyright © LB-Link
The file „testadc.py“ shows a way, how to measure analog voltage Level with a python script; with
the function readadc() and a specified Channel (0-7) you can read out the actual value.
Create a file with the name „testadc.py“ and copy the script shown above in this file (please make
sure, that you don’t miss any spaces).
The script can now be used in two different ways:
Output the values of all ADC-Channels simultaneously:
This command causes that the values of all ADC-Channels are read out and displayed every 1.5s.
Output of values from specific Channels:
You can also read out the values from individual channels – specify them with their channel number
directly after the command, separated with a spacer. In this example this would be the
channels [3] und [7]
sudo python testadc.py
sudo python testadc.py 3 7