<< 点击显示目录 >> 主页 exOS使用助手 > exOS Automation Help > Development > Programming > Data communication > Process synchronization > Simulation |
在仿真设置中,两个系统之间通过TCP/IP套接字进行连接,因此无法像管理程序系统那样同步执行任务。在这种情况下,AR数据集消息路由器与任务类系统异步运行。通过确定发送和接收同步消息的往返时间,AR数据集消息路由器会调整其与底层TCP栈的周期时间。Linux数据集消息路由器的执行仍会因来自AR的同步消息而阻塞,因此数据集消息路由器在受控交互中运行,但仍与任务类系统异步。根据这一同步原则,所有Linux程序都将以TCP往返的周期时间运行。
在 ExSyncInfo 功能块中,可以使用 ProcessSync 结构 监控当前周期时间和进程同步 情况。
In a simulation setup, where the connection between the two systems takes place via TCP/IP socket, a synchronous execution of tasks cannot take place as with the Hypervisor system. In this setup, the AR Dataset Message Router runs asynchronously to the task class system. By determining the round trip time of sending and receiving the synchronization message, the AR Dataset Message Router adjusts its cycle time with the underlying TCP stack. The execution of the Linux Dataset Message Router still blocks for sync messages from AR, so the Dataset Message Router runs in a controlled interaction, yet still asynchronously to the task-class system. From this synchronization principle it also follows that all Linux programs will run with the cycle time of the TCP roundtrip.
In the ExSyncInfo function block, the current cycle time and the process synchronization can be monitored using the ProcessSync structure.