saturationOverflows
飽和が生じた結果の取得
説明
は、results
= saturationOverflows(converter
,RunName
)DataTypeWorkflow.Converter
オブジェクト converter
で指定されたモデルについて、シミュレーション中に飽和した RunName
のすべての結果を返します。
例
指定した実行の飽和した結果の取得
この例では、DataTypeWorkflow.Converter
オブジェクトの指定した実行の飽和した結果を取得する方法を示します。
fxpdemo_feedback
モデルを開きます。
open_system('fxpdemo_feedback');
Controller サブシステムの DataTypeWorkflow.Converter
オブジェクトを作成します。
converter = DataTypeWorkflow.Converter('fxpdemo_feedback/Controller');
モデルのシミュレーションを実行し、結果を InitialRun
というタイトルの実行に保存します。
converter.CurrentRunName = 'InitialRun';
simulateSystem(converter);
実行にオーバーフローがあったかどうかを判定します。
saturations = saturationOverflows(converter,'InitialRun')
saturations = Result with properties: ResultName: 'fxpdemo_feedback/Controller/Up Cast' SpecifiedDataType: 'fixdt(1,16,14)' CompiledDataType: 'fixdt(1,16,14)' ProposedDataType: '' Wraps: [] Saturations: 23 WholeNumber: 0 SimMin: -2 SimMax: 1.9999 DerivedMin: [] DerivedMax: [] RunName: 'InitialRun' Comments: {'An output data type cannot be specified on this result. The output type is the same as the input type.'} DesignMin: [] DesignMax: []
シミュレーション中に、Controller サブシステムの Up Cast ブロックで飽和が発生します。ラップするオーバーフローはありません。
入力引数
converter
— コンバーター オブジェクト
DataTypeWorkflow.Converter
オブジェクト
設計対象のシステムのコンバーター オブジェクト。DataTypeWorkflow.Converter
オブジェクトとして指定します。
RunName
— 実行の名前
文字ベクトル
飽和を検索する実行の名前。文字ベクトルとして指定します。
例: saturations = saturationOverflows(converter,'Run 1')
データ型: char
出力引数
results
— 飽和した結果
DataTypeWorkflow.Result
オブジェクト
飽和した結果。DataTypeWorkflow.Result
オブジェクトとして返されます。
バージョン履歴
R2014b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)