blockReadMessage

Set up a message for receiving data

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.SocketCANBlockIcon (Icon for (Linux) Socket CAN blocks), Modelica_DeviceDrivers.Blocks.Communication.Internal.PartialSampleTrigger (Common code for triggering calls to external I/O devices).

Information

Support for Linux Socket CAN interface

Please, read the package information for SocketCAN first!

Example

See TestSerialPackager_SocketCAN.

Parameters

TypeNameDefaultDescription
SocketCANConfigconfigSocket CAN configuration (socket) to use for this block
Integercan_idIdentifier of CAN message (CAN Id)
Integercan_dlc8Data length code (payload of data in bytes, max=8)
Activation
BooleanenableExternalTrigger (from PartialSampleTrigger)falsetrue, enable external trigger input signal, otherwise use sample time settings below
SI.PeriodsampleTime (from PartialSampleTrigger)0.1Sample period of component
SI.TimestartTime (from PartialSampleTrigger)0First sample time instant

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputtrigger (from PartialSampleTrigger)
Interfaces.PackageOutpkgOut