MATLAB S-Function のブロック機能の構成
MATLAB® S-Function では、さまざまな S-Function API を使用して拡張ブロック機能を構成できます。
入力/出力端子の作成および構成
ブロックベースのサンプル時間と端子ベースのサンプル時間の指定
DWork ベクトルを使用したメモリの割り当て
パラメーターの S-Function への受け渡し
実行時パラメーターの作成
メソッド
クラス
Simulink.BlockPreCompInputPortData | ブロックの入力端子に関するコンパイル前の情報を提供 |
Simulink.BlockPreCompOutputPortData | ブロックの出力端子に関するコンパイル前の情報を提供 |
Simulink.MSFcnRunTimeBlock | Level-2 MATLAB S-Function ブロックに関する実行時の情報を取得する |
Simulink.RunTimeBlock | シミュレーションの実行中における、Level-2 MATLAB S-Function やその他の MATLAB プログラムによるブロックに関する情報の取得 |
Simulink.BlockData | ブロック パラメーターなど、ブロックに関連するデータの実行時の情報を提供する |
Simulink.BlockPortData | ブロックの入力端子または出力端子を記述 |
Simulink.BlockCompDworkData | ブロックの Dwork ベクトルに関するコンパイル後の情報を提供する |
Simulink.BlockCompInputPortData | ブロックの入力端子に関するコンパイル後の情報を提供 |
Simulink.BlockCompOutputPortData | ブロックの出力端子に関するコンパイル後の情報を提供 |
トピック
- Create Input and Output Ports
Create input and output ports on a MATLAB S-function block.
- Specify S-Function Sample Times
How to specify the rate or rates at which your block operates in MATLAB S-functions.
- Use DWork Vectors in S-Functions
Use DWork vectors to allocate block data to memory.
- Inherit Custom Data Types
Inherit custom data types for the values of a block's signals and parameters in MATLAB S-functions.
- Pass Dialog Parameters to S-Functions
Process parameters passed via the MATLAB S-function block dialog box.
- Create and Update S-Function Run-Time Parameters
Create and use run-time parameters in MATLAB S-functions.
- Use MATLAB S-Functions as Sim Viewing Devices in External Mode
Specify MATLAB S-function as a sim viewing device for use in external mode.
- Level-2 MATLAB S-Function Compliance with Model Operating Point
Use model operating point in MATLAB S-functions to save and restore simulation state.