Two Way Interprocess Communication

This example shows two-way interprocess data communication between two processors running in an operating system managed processor.

Process1 sends a data message, using the Interprocess Data Write block, to the Interprocess Data Channel block at a 0.01 second interval. Process2 two receives and processes the data messages asynchronously, using the Interprocess Data Read block. The processed data then returns to Process1 received by an asynchronous task.

Results

In the Simulation tab, click Run. When the simulation completes, open the Simulation Data Inspector to view the resulting signals and task executions. Process1 sends the data packet at the completion of Task11. Task21, in Process2, triggers upon receiving the event, processes the data packet, and send the packet back to Process1. Task12, in Process1, executes immediately upon receiving the data packet, preempting Task11. The result is a complete transfer of data packets to one process and receiving the completed result.