主要内容

Logging buffer size (in bytes)

Buffer size for logging data in Universal Measurement and Calibration Protocol (XCP)-based external mode

Model Configuration Pane: Hardware Implementation

Description

Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.

The Logging buffer size (in bytes) parameter specifies 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.

When specifying the buffer size, the maximum value of this parameter must not exceed the available NVIDIA® hardware 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 NVIDIA hardware 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.

Settings

100000 (default)

XCP-based external mode simulation uses the specified logging buffer size.

Programmatic Use

You cannot set this parameter from the MATLAB® command line.

Version History

Introduced in R2020b