主要内容

缓冲区、开关和计数器

更改信号的采样率或帧速率、对事件进行计数、检测边缘以及当事件发生时执行操作

使用 BufferUnbufferDelay Line 等帧重缓冲模块在 Simulink® 中转换信号速率和帧大小。使用 Simulink 中的 QueueStack 模块和 MATLAB® 中的 dsp.AsyncBuffer 对象实现 FIFO 和 LIFO 缓冲区。您还可以使用 DSP System Toolbox™ 中的开关模块和计数器模块对事件进行计数、检测边缘以及在事件发生时执行操作。

对象

dsp.AsyncBufferFIFO buffer

函数

rebuffer_delayNumber of samples of delay introduced by buffering and unbuffering operations

模块

全部展开

Buffer将输入序列分组或合并为更小或更大的帧大小
N-Ratio BufferBuffer input data into integer-multiple-sized frames (自 R2026a 起)
Delay LineRebuffer sequence of inputs
QueueStore inputs in FIFO register
StackStore inputs into LIFO register
UnbufferUnbuffer input frame into sequence of scalar outputs
N-Ratio UnbufferUnbuffer input data into integer-factor-sized frames (自 R2026a 起)
CounterCount up or down through specified range of numbers
Edge DetectorDetect transition from zero to nonzero value
Event-Count ComparatorDetect threshold crossing of accumulated nonzero inputs
Multiphase ClockGenerate multiple binary clock signals
N-Sample EnableOutput ones or zeros for specified number of sample times
N-Sample SwitchSwitch between two inputs after specified number of sample periods

主题