This documentation describes the lcnc_realtime Python module, which provides
a Python API for managing the realtime backend.
This is a Python wrapper of the realtime script.
1. Basic usage
Verify realtime capability and check if the realtime backend is running
import lcnc_realtime
print("lcnc_realtime.verify " + str(lcnc_realtime.verify()))
print("lcnc_realtime.verify_info " + str(lcnc_realtime.verify_info()))
print("lcnc_realtime.status " + str(lcnc_realtime.status()))
2. methods
- lcnc_realtime.verify()
-
Returns a boolean to indicate whether the system is realtime capable.
- lcnc_realtime.verify_info()
-
Returns a tuple
(capable, type), wherecapableis the same boolean asverify()andtypeis a human-readable string naming the realtime type that rtapi is running (for examplePreempt RT,RTAIorXenomai), orNo realtimewhen none is available. - lcnc_realtime.status()
-
Returns a boolean to indicate whether the realtime backend is running.