Main Content

Logging buffer size (in bytes)

R2026b

Size of pre-allocated buffer on target for signal logging during XCP external mode

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

Description

Specify the number of bytes to preallocate for the signal logging buffer on the Arduino® hardware during XCP-based external mode simulation. The target uses this buffer to store logged signal data before transmitting it to the host. Specify a value large enough to accommodate all logged signals in the model.

The maximum number of log samples is approximately floor(buffer_size / number_of_logged_signals). After the buffer saves this many sample points, it wraps and further samples overwrite the older ones.

If the buffer size exceeds the available RAM on the Arduino board, the deployment fails with the error ERROR: allocation of logging memory failed. To resolve this error, reduce the buffer size or decrease the number of logged signals.

Dependencies

To enable this parameter, clear the Set logging buffer size automatically parameter.

Settings

1000 (default)

Enter a positive integer value representing the buffer size in bytes. The value must not exceed the available RAM on the target Arduino board.

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2019a