メインコンテンツ

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

バッファー、スイッチおよびカウンター

R2026a
信号のサンプル レートまたはフレームレートの変更、イベントのカウント、エッジの検出、イベント発生時のアクションの実行

Buffer ブロック、Unbuffer ブロック、Delay Line ブロックなどのフレーム再バッファー ブロックを使用して、Simulink® で信号レートとフレーム サイズを変換します。Simulink の Queue ブロック、Stack ブロック、および MATLAB® の dsp.AsyncBuffer オブジェクトを使用して、FIFO バッファーと LIFO バッファーを実装します。DSP System Toolbox™ のスイッチ ブロックとカウンター ブロックを使用して、イベントをカウントしたり、エッジを検出したり、イベントが発生したときにアクションを実行したりすることもできます。

オブジェクト

dsp.AsyncBufferFIFO buffer

関数

rebuffer_delayNumber of samples of delay introduced by buffering and unbuffering operations

ブロック

すべて展開する

Buffer blockBuffer入力シーケンスの小さいフレーム サイズまたは大きいフレーム サイズへのバッファリング
N-Ratio Buffer blockN-Ratio BufferBuffer input data into integer-multiple-sized frames (R2026a 以降)
Delay Line blockDelay LineRebuffer sequence of inputs
Queue blockQueueStore inputs in FIFO register
Stack blockStackStore inputs into LIFO register
Unbuffer blockUnbuffer入力フレームをバッファー解除してスカラー出力のシーケンスに変換する
N-Ratio Unbuffer blockN-Ratio UnbufferUnbuffer input data into integer-factor-sized frames (R2026a 以降)
Counter blockCounter指定した数値範囲でのカウント アップまたはカウント ダウン
Edge Detector blockEdge Detectorゼロから非ゼロ値への遷移の検出
Event-Count Comparator blockEvent-Count ComparatorDetect threshold crossing of accumulated nonzero inputs
Multiphase Clock blockMultiphase ClockGenerate multiple binary clock signals
N-Sample Enable blockN-Sample EnableOutput ones or zeros for specified number of sample times
N-Sample Switch blockN-Sample SwitchSwitch between two inputs after specified number of sample periods

トピック