On one of our two CONNECT+ systems (with MIO and DO modules connected) we occasionally get the following warning from revpimodio2:
Code: Select all
/usr/lib/python3/dist-packages/revpimodio2/helper.py:617: RuntimeWarning: cycle time of 20 ms exceeded - can not hold cycle time!
RuntimeWarning
I'd like to investigate why this happens -- and why on only one of the systems -- but I'm not sure what the warning actually means. In plain English, does it mean something like:
orI'm warning you that it took me longer than 20ms to perform the IO refresh cycle
or something else?I'm warning you because I'm supposed to refresh the IOs every 20ms, but it took longer than that between my invocations
Any suggestions for where to look, what to do to debug, etc. would be welcome.
This is how I instantiate RevPiModIO:
Code: Select all
import revpimodio2
revpi_io = revpimodio2.RevPiModIO(autorefresh=True)