Contenido principal

Transmit queue buffer size

R2026b

Transmit queue length for SocketCAN interface

Model Configuration Pane: Hardware Implementation / Hardware board settings / Target hardware resources / Groups / CAN

Description

Specify the number of CAN frames that can be queued for transmission on the CAN interface.

The transmit queue stores outgoing CAN messages before they are placed on the bus. Increasing the queue size allows the system to handle bursts of CAN messages without dropping frames. However, larger values increase memory usage and may introduce additional transmission latency.

Dependencies

To enable this parameter, set Interface configuration to Specify via Simulink. To enable this parameter for additional interfaces, set Number of interfaces to a value greater than or equal to the interface number.

Settings

65536 (default) | positive integer

Enter the transmit queue buffer size as a positive integer.

65536 (default)

Default queue size of 65536 frames. This provides a large buffer suitable for most real-time applications where high-frequency CAN transmission is required.

Custom value

Specify a custom queue size. Smaller values (for example, 1000) reduce memory usage but may cause frame drops under high load. Larger values provide more buffering at the cost of increased memory and potential latency.

Recommended Settings

No recommendation.

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2019b