Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Buffers, Switches, and Counters

Change sample rate or frame rate of signals, count events, detect edges, perform actions when events occur

System Objects

dsp.AsyncBuffer FIFO buffer
dsp.Buffer Buffer input signal
dsp.DelayLine Rebuffer sequence of inputs with one-sample shift
dsp.Counter Count up or down through specified range of numbers

Functions

rebuffer_delay Number of samples of delay introduced by buffering and unbuffering operations

Blocks

Buffer Buffer input sequence to smaller or larger frame size
Delay Line Rebuffer sequence of inputs
Queue Store inputs in FIFO register
Stack Store inputs into LIFO register
Unbuffer Unbuffer input frame into sequence of scalar outputs
Counter Count up or down through specified range of numbers
Edge Detector Detect transition from zero to nonzero value
Event-Count Comparator Detect threshold crossing of accumulated nonzero inputs
Multiphase Clock Generate multiple binary clock signals
N-Sample Enable Output ones or zeros for specified number of sample times
N-Sample Switch Switch between two inputs after specified number of sample periods

Topics

Convert Sample and Frame Rates in Simulink

Learn how operations such as direct rate conversion and frame rebuffering impact the sample and frame rates if your signal.

Sample- and Frame-Based Concepts

Introduction to real-world sample- and frame-based signals, and how to model those signals in MATLAB® and Simulink®

Buffering and Frame-Based Processing

Convert signals of frame size 1 into signals of frame size greater than 1, and vice versa

Inspect Sample and Frame Rates in Simulink

Learn how to determine the sample and frame rates of signals in your model

Delay and Latency

Configure the Simulink environment to minimize delay and increase simulation performance

Why Does Reading Data from the dsp.AsyncBuffer Object Give a Dimension Mismatch Error in the MATLAB Function Block?

Resolve the dimension mismatch error when you read data from an async buffer inside the MATLAB function block.

Why Does the dsp.AsyncBuffer Object Error When You Call read Before write?

Initialize the async buffer by calling either setup or write before the first call to read.

Was this topic helpful?