Buffer, Schalter und Zähler
Mit Frame-Rebuffering-Blöcken wie Buffer, Unbuffer und Delay Line können Sie in Simulink® Signalraten und Framegrößen konvertieren. Implementieren Sie mithilfe der Blöcke Queue und Stack in Simulink und dem dsp.AsyncBuffer
-Objekt in MATLAB® FIFO- und LIFO-Buffer. Zudem können Sie mit den Switch- und Counter-Blöcken in DSP System Toolbox™ Ereignisse zählen, Ränder erkennen und bei Ereignissen Aktionen ausführen.
Objekte
dsp.AsyncBuffer | FIFO buffer |
Funktionen
rebuffer_delay | Number of samples of delay introduced by buffering and unbuffering operations |
Blöcke
Themen
- Sample- and Frame-Based Concepts
Explore basic signal concepts in the context of a Simulink model. Learn more about sample-based processing and frame-based processing.
- Buffering and Frame-Based Processing
Convert signals of frame size
1
into signals of frame size greater than1
, and vice versa. - Convert Sample and Frame Rates in Simulink Using Frame Rebuffering Blocks
Learn how frame rebuffering blocks impact the sample rate and frame rate of signals in Simulink models.
- 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 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.