主要内容

Logging buffer size (in bytes)

Number of bytes to preallocate for buffer in hardware

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

Description

Use the Logging buffer size (in bytes) parameter to specify the number of bytes to preallocate for the buffer in the hardware during Universal Measurement and Calibration Protocol (XCP)-based External mode simulation. Specify Logging buffer size (in bytes) to a value large enough to accommodate the logged signals.

Settings

1000000 (default)

When specifying the buffer size, ensure that the maximum value of this parameter does not exceed the available Raspberry Pi® memory, which the Simulink® Real-Time™ also uses to store other items. For example, in addition to signal logging data, the software also uses the Raspberry Pi memory for the Simulink Real-Time kernel, real-time application, and scopes.

Assume that your model has six data items (time, two states, two outputs, and task execution time). If you enter a buffer size of 100000, the target object property tg.MaxLogSamples is calculated as floor(100000 / 6) = 16666. After the buffer saves 16666 sample points, it wraps and further samples overwrite the older ones.

Recommended Settings

No recommendation.

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2019a