Main Content

LIN Pack

Pack signals into data frame by using configuration in LIN description file

  • Library:
  • Simulink Real-Time / LIN

  • LIN Pack block

Description

The LIN Pack block packs signals into the data frame by using the configuration in the LIN description file (LDF). A local interconnect network (LIN) bus can use the packed data. The LIN Pack block supports LDF version 2.2 and previous.

Ports

Input

expand all

Receives data to pack for the LIN. The number of input ports is allocated based on the selected frame. The port name is assigned to each port.

Output

expand all

Sends packed LIN data.

Parameters

expand all

Provides the file path of the LDF. If you do not set this parameter, you cannot use the block.

Programmatic Use

Block Parameter: LDFFileName

Selects the LIN frame from selections available in LDF. If you do not select an LDF, the block uses None.

Programmatic Use

Block Parameter: selectedFrameName

Selects the LIN frame ID from selections available in LDF. If you do not select an LDF, the block uses 1.

Programmatic Use

Block Parameter: frameId

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2021b