The lcmSend block sends to the local port 10002. The lcmReceive block starts a background process that listens at port 10002. Consequently, the lcmReceive block receives what the lcmSend block sends.

Note: There is no causality between the lcmSend block and the lcmReceive block. Therefore the execution order of the blocks is not determined. Additionally, the lcmReceive block starts an own receiving thread, so that the time the data was received is not equal to the time the external function within the lcmReceive block was called. This indeterminism may also show up in the plots.

Remark regarding Linux

LCM requires a valid multicast route. If this is a Linux computer and it is simply not connected to a network, the following commands are usually sufficient as a temporary solution:

sudo ifconfig lo multicast
sudo route add -net netmask dev lo

Generated at 2020-07-15T01:52:57Z by OpenModelicaOpenModelica 1.16.0~dev-555-g52c29dc using GenerateDoc.mos