Main Content

Set logging buffer size automatically

R2026b

Automatically determine the signal logging buffer size on the target hardware during external mode

Model Configuration Pane: Hardware Implementation / Hardware board settings / Target hardware resources / External mode

Description

When selected, the signal logging buffer size on the Arduino® hardware is determined automatically based on the number of logged signals in the model and the available memory on the target. The target uses this buffer to store logged signal data before transmitting it to the host during XCP-based external mode simulation.

When cleared, you can specify a custom logging buffer size using the Logging buffer size (in bytes) parameter.

Settings

on (default) | off
on (default)

The logging buffer size is calculated automatically based on the model configuration. This setting is appropriate for most use cases.

off

Specify a custom logging buffer size using the Logging buffer size (in bytes) parameter. Use this option when the automatically calculated buffer size does not fit within the available RAM on the Arduino board, or when you need finer control over memory allocation.

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2021b