Hi, I am getting the error as in the following screen shot. How can I fix.
Thank you.
RevPiModIO2 Error ?
Moderator: RevPiModIO
- Attachments
-
- error.png (218.86 KiB) Viewed 5558 times
- RevPiModIO
- KUNBUS
- Posts: 335
- Joined: 20 Jan 2017, 08:44
- Contact:
Hi kodyaz!
Sorry for the long wait, I missed the post - sorry!!!
It looks like the module could not communicate with the piControl0 device.
Could you type this command to a linux shell and post the return value?
Could you use your existing program c.py and extend it like this:
Please post the outputs including errors!
I will build an extended version of RevPiModIO with a "debugging" flag to show detailed error messages.
Regards
Sven
Sorry for the long wait, I missed the post - sorry!!!
It looks like the module could not communicate with the piControl0 device.
Could you type this command to a linux shell and post the return value?
Code: Select all
ls -lah /dev/piControl0
Could you use your existing program c.py and extend it like this:
Code: Select all
import revpimodio2
rpi = revpimodio2.RevPiModIO(autorefresh=False)
print(rpi.length, rpi.procimg, rpi.configrsc)
# Do some things on the process image
print(rpi._myfh.tell())
print(rpi._myfh.seek(0))
print(rpi._myfh.read(1))
Please post the outputs including errors!
I will build an extended version of RevPiModIO with a "debugging" flag to show detailed error messages.
Regards
Sven
python3-RevPiModIO - https://revpimodio.org/ || Der RevPi ist das Beste, was passieren konnte!