Circular Buffer Block

View table of content.

How this block appears in a Simulink model?


What can be configured?

Mode: Setup

Mode: Write

Mode: Read

Configuration Parameter Selectable Option/Value Description
Mode Setup--Write--Read Select the operation mode
Buffer Name Allocate the name of the circular buffer
Length of the buffer Number of dataset rows to be held
Input Format Data types of each data in a dataset row
Sample time (sec) -1 (inherited) or specify Specify sample time

When to use this block?

This block can be used to temporarily hold data to ensure no data loss when saving the data (for example: to a database) due to a blocking process.

How does this block work?

The number of datatypes the user specify in the Input Format parameter is the number of circular buffers which the block would create. All of these circular buffers will have a common head and tail index trackers. Length of the buffer parameter specify the number of indexes for each circular buffer. The circular buffer block will only work when activation signal input port is connected to Boolean 'true' signal.


Circular Buffer demo

Previous : Host Setup Block
Next : Digital Output demo