The following Python script (IP-address is replaced by x's) gives continually repeated warnings resulting from line 5 (
Code: Select all
pass
Code: Select all
revpimodio2\helper.py:614: RuntimeWarning: cycle time of 50 ms exceeded - can not hold cycle time!
Code: Select all
import revpimodio2
revpi_ip = "xxx.xxx.xxx.xxx"
rpi = revpimodio2.RevPiNetIO(revpi_ip, autorefresh=True)
while True:
pass
Code: Select all
ProcimgWriter
Code: Select all
RevPiNetIO
Code: Select all
modio
Simply writing (or reading) an IO instead of performing some task in a while loop works just fine. Most likely because the program is able to finish within the first cycle.
However,
Code: Select all
ProcimgWriter
Code: Select all
RuntimeWarnings
Why is this happening and how do I solve it?
Kind regards, any help is appreciated!