Document toolboxDocument toolbox

RevPiModIO FAQ

RevPiModIO is a third-party software that we have integrated into our system. If you need further information, please visit the official website. If you require any clarification, please ask them in our forum, which has its category. https://revpimodio.org/

When multiple Python codes importing RevPiModIO are executed simultaneously, the IOs become unstable, what can I do?

  • Just add "shared_procimg=True" to your RevPiModIO(...) call in all your scripts.

https://revpimodio.org/en/doc2/#shared_procimg

I can switch outputs, but after a reboot an output can no longer be switched off, what am I doing wrong?

If you are working with autorefresh i.e. "revpi = revpimodio2.RevPiModIO(autorefresh=True)" then check whether your code contains "revpi.cleanup()" at the end.

Would it be possible to access the data in the process image with several Python processes?

Just add "shared_procimg=True" to your RevPiModIO(...) call in all your scripts.

Original discussion here:

https://revolutionpi.com/forum/viewtopic.php?p=15144&hilit=revpimodio#p15135

I want to switch an output with the RevPiModIO Library, but this output oscillates.

  • Check if you have several instances of RevPiModIO running in parallel. Then there are competing accesses and the values jump.

  • End all Python processes, e.g., with “ps ax | grep python” and then “sudo kill [pid]”

  • Then set the output with: “piTest -w OutputValue_1, 1000 "

  • Check if the value is present at the output

  • https://revolution.kunbus.de/forum/viewtopic.php?f=6&t=3013#p10778

I got a runtime error from the RevPiModIO process, what can I do?

Runtime Warning: cannot execute all event functions in one cycle
There is a discussion in our Forum: https://revolutionpi.de/forum/viewtopic.php?f=6&t=3340

I would like to know if there is an C++ library equivalent to RevPiModIO

We don't provide a C++ library that is similar to RevPiModIO.

You have to write your library, thanks to our documentation below.

We have 2 videos on our website, in German DUB and English SUB.
https://revolutionpi.com/tutorials/video-tutorials/?noredirect=en_US

you can check the following videos:

Tutorial 13 – PiTest source code
Tutorial 25 – Create your own RAP file

In the download area, you will find the source code.
https://revolutionpi.de/tutorials/downloads/#revpiimages

Can I use timer events with IO signals?

If you want to use a timer after a certain value change, I would recommend using the reg_event IO function in revpimodio2 (https://revpimodio.org/en/doc2/io/). In the case that you would like to trigger an IO at a certain time, you can call a script via a cronjob or use the python library schedule https://schedule.readthedocs.io/en/stable/

https://revolutionpi.de/forum/viewtopic.php?t=3684#p13312

How to update the Python version and is there a problem with the “RevPiPyload” library?

Have a try with

sudo apt update sudo apt install python

The component “RevPiPyload” is developed by the Revolution Pi community.

The developers have also developed the popular Python library “RevPiModIO”. Therefore, there is a board in the forum with the name “RevPiModIO”. So please ask your questions here to the developers of the component.

https://revolutionpi.de/forum/viewforum.php?f=41

I would like to write a Python program using RevPiModIO that displays a variable in a window and automatically updates it after an input signal is received. Is this possible?

Yes, take a look here:

https://revolutionpi.de/forum/viewtopic.php?f=8&t=2763#p10084

What is the sample-rate/message-rate when sending message with MQTT using RevPiPyload if send_on_event is enabled?

The default cycle time on a multicore RevPi (everything except the Core 1) is 20 ms and that is the detection rate, too.

https://revolutionpi.de/forum/viewtopic.php?t=3587#p13056

I was wondering what the sample-rate/message-rate is when sending message with MQTT using RevPiPyload if send_on_event is enabled?
And which change in input will trigger such an event?

https://revolutionpi.de/forum/viewtopic.php?t=3587#p13056