Main Content

このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。

信号処理モデル向け Simulink 環境の構成

DSP Simulink モデル テンプレートについて

DSP Simulink® モデル テンプレートを使用すると、デジタル信号処理モデリングの推奨設定で Simulink 環境を自動的に構成できます。DSP Simulink モデル テンプレートでは、コンフィギュレーション パラメーターを含む設定の再利用が可能です。ベスト プラクティスを使用するテンプレートからモデルを作成し、一般的な問題に対する以前のソリューションを活用できます。新規モデルで既定のキャンバスの代わりに、テンプレート モデルを選択してすぐに作業を開始できます。

Simulink モデル テンプレートの詳細については、モデルの対話的な作成と編集 (Simulink)を参照してください。

DSP System Toolbox Simulink モデル テンプレートを使用したモデルの作成

新しい空のモデルを作成してそのライブラリ ブラウザーを開くには、次のようにします。

  1. MATLAB®[ホーム] タブで [Simulink] をクリックします。

  2. [DSP System] をクリックして DSP System Toolbox™ での使用に適切な設定で空のモデルを作成します。新しいモデルが開きます。ライブラリ ブラウザーにアクセスするには、モデルのツールストリップの [ライブラリ ブラウザー] をクリックします。

    Snapshot of the three Simulink model templates in the Simulink Start page, under DSP System Toolbox. First comes DSP System template, followed by the Basic File template and the Mixed-Signal System template.

テンプレートの設定とコンテンツを使用した新規モデルが Simulink エディターに表示されます。保存するまでは、モデルはメモリ内にのみ存在します。

DSP Simulink モデル テンプレート

DSP Simulink モデル テンプレートのいずれかを選択してモデルを作成すると、モデルは DSP System Toolbox の推奨設定を使用するように構成されます。以下はその設定の一部です。

コンフィギュレーション パラメーター設定
SingleTaskRateTransMsgerror
multiTaskRateTransMsgerror
Solverfixedstepdiscrete
EnableMultiTaskingOff
StartTime0.0
StopTimeinf
FixedStepauto
SaveTimeoff
SaveOutputoff
AlgebraicLoopMsgerror
SignalLoggingoff
FrameProcessingCompatibilityMsgerror

DSP Simulink モデル テンプレートは以下になります。

DSP System テンプレート

[DSP System] をクリックして、DSP System Toolbox 用の推奨設定で構成された空白モデルを作成します。

Snapshot of a blank model template. The model is empty with no blocks. The Simulation pane is shown by default in the model toolstrip. In the Simulation pane, Stop time is set to inf and the simulation mode is set to Normal.

基本フィルター テンプレート

[Basic Filter] をクリックして、DSP System Toolbox 用の推奨設定で構成された基本フィルター モデルを作成します。

このモデルは、ローパス フィルターを実装しており、フィルター処理された信号を元の信号と比較できます。モデルは、Simulink 内で、DSP System Toolbox を使用したフィルター処理アルゴリズムのモデル化の開始点として機能します。

Snapshot of a basic filter model template. The model has two Sine Wave blocks and a Gaussian Noise block in the input. The outputs of these three blocks are added by an adder. The noisy Sinusoidal signal at the output of the adder is pass into a Lowpass FIR Filter block. The noisy signal and the filtered signal are fed into the Spectrum Analyzer as two inputs. The Spectrum Analyzer compares the spectra of these two signals. The Simulation pane is shown by default in the model toolstrip. In the Simulation pane, Stop time is set to inf and the simulation mode is set to Normal.

ミックスドシグナル システム テンプレート

[Mixed-Signal System] テンプレートをクリックして、DSP System Toolbox およびミックスドシグナル システム用の推奨設定で構成された基本 A/D コンバーター モデルを作成します。このモデルは、アナログ アンチ エイリアシング フィルターの後にゼロ次ホールド回路を実装することで A/D 変換を実行します。モデルは、Simulink 内で、DSP System Toolbox を使用したミックスドシグナル システムのモデル化の開始点として機能します。離散時間信号はすべて、最速のサンプルレートを示す赤で表示されます。連続時間信号は黒で表示されます。その他のサンプル時間オプションについては、[デバッグ] タブの [情報のオーバーレイ][色] を選択します。

Snapshot of a mixed-signal model template. The Signal Generator block on left generates a continuous-time sinusoidal signal. On one branch of the model, the signal is delayed using a Transport Delay block. On the other branch of the model, the signal is filtered using an Analog Filter Design block. The output of the Analog Filter Design block is continuous-time and is fed into a Zero-Order hold block. The Zero-Order hold block makes the signal a discrete-time signal. The continuous-time signal and the discrete-time counterpart are fed into a scope. The discrete-time signal is also fed into a Spectrum Analyzer. Discrete sample time signals and blocks can be color-annotated to help visual inspection of diagrams. All discrete-time signals are colored, with red identifying the fastest sample rate. Continuous-time signals are black.

参考