About a year ago, I was able to control the outputs of the MIO module without any issues using RevPiModIO.
However, when I recently tried to control the outputs again, I encountered the following error message. I haven't made any changes to the Pictory settings, so I'm puzzled by this issue.
If anyone knows a solution, please let me know.
Thank you in advance.
Code: Select all
import revpimodio2
import time
rpi = revpimodio2.RevPiModIO(autorefresh=True)
rpi.io.AnalogOutput_1.value=8000
time.sleep(1)
print(rpi.io.AnalogOutput_1.value)
rpi.io.AnalogOutput_2.value=8000
time.sleep(1)
print(rpi.io.AnalogOutput_2.value)
rpi.io.AnalogOutput_3.value=8000
time.sleep(1)
print(rpi.io.AnalogOutput_3.value)
rpi.io.AnalogOutput_4.value=8000
time.sleep(1)
rpi.io.AnalogOutput_1.value=0
rpi.io.AnalogOutput_2.value=0
rpi.io.AnalogOutput_3.value=0
rpi.io.AnalogOutput_4.value=0
/usr/lib/python3/dist-packages/revpimodio2/io.py:302: Warning: ignore io 'ReservedDI_1', as an io already exists at the address '0 Bit 0'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:302: Warning: ignore io 'ReservedDI_2', as an io already exists at the address '0 Bit 1'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:302: Warning: ignore io 'ReservedDI_3', as an io already exists at the address '0 Bit 2'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:302: Warning: ignore io 'ReservedDI_4', as an io already exists at the address '0 Bit 3'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:302: Warning: ignore io 'ReservedDO_1', as an io already exists at the address '34 Bit 0'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:302: Warning: ignore io 'ReservedDO_2', as an io already exists at the address '34 Bit 1'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:302: Warning: ignore io 'ReservedDO_3', as an io already exists at the address '34 Bit 2'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:302: Warning: ignore io 'ReservedDO_4', as an io already exists at the address '34 Bit 3'. this can be caused by an incorrect pictory configuration.
Warning,