Modifications to communicate in realtime using rtnet functions and RTDM library