getAllParameters
関連付けられた coder.descriptor.LookupTableDataInterface オブジェクトと coder.descriptor.BreakpointDataInterface オブジェクトをすべて返す
構文
dataInterface = getAllParameters(parameterObj)
説明
は、関連付けられた dataInterface = getAllParameters(parameterObj)coder.descriptor.LookupTableDataInterface オブジェクトと coder.descriptor.BreakpointDataInterface オブジェクトをすべて返します。
入力引数
モデルの Lookup Table ブロックを表す coder.descriptor.LookupTableDataInterface オブジェクト。
データ型: string
出力引数
coder.descriptor.LookupTableDataInterface オブジェクトは、モデルの Lookup Table ブロックを表します。coder.descriptor.BreakpointDataInterface オブジェクトは、Lookup Table ブロックに関連付けられているブレークポイント セット データを表します。
例
この例では、モデルからルックアップ テーブル データ インターフェイス オブジェクトとブレークポイント データ インターフェイス オブジェクトをすべて取得する方法を説明します。
モデルの作成
ルックアップ テーブル ブロックを含むモデルを開いて、ビルドします。
open_system('ASAP2Demo'); slbuild('ASAP2Demo');
### Searching for referenced models in model 'ASAP2Demo'. ### Total of 2 models to build. ### Starting serial code generation build. ### Successfully updated the model reference code generation target for: ASAP2DemoModelRef ### Starting build procedure for: ASAP2Demo codeInterfacePackaging: Nonreusable function codeInterfacePackaging: NonReusable ### Successful completion of build procedure for: ASAP2Demo Build Summary Model reference code generation targets: Model Build Reason Status Build Duration ============================================================================================================ ASAP2DemoModelRef Target (ASAP2DemoModelRef.c) did not exist. Code generated and compiled. 0h 0m 9.4269s Top model targets: Model Build Reason Status Build Duration ============================================================================================================ ASAP2Demo Information cache folder or artifacts were missing. Code generated and compiled. 0h 0m 20.179s 2 of 2 models built (0 models already up to date) Build duration: 0h 0m 31.212s
モデルのコード記述子オブジェクトを作成します。
codeDescObj = coder.getCodeDescriptor('ASAP2Demo');ルックアップ テーブルのパラメーターのプロパティを返します。
params = getDataInterfaces(codeDescObj,'Parameters');変数 params は、coder.descriptor.DataInterface オブジェクトと coder.descriptor.LookupTableDataInterface オブジェクトからなる配列です。
配列内の 6 番目の位置にアクセスしてモデルの Lookup Table ブロックの詳細を取得します。
parameterObj = params(6)
parameterObj =
LookupTableDataInterface with properties:
Type: [1×1 coder.descriptor.types.Type]
SID: 'ASAP2Demo:12'
GraphicalName: 'tabledata'
VariantInfo: [1×0 coder.descriptor.VariantInfo]
Implementation: [1×1 coder.descriptor.DataImplementation]
Timing: [1×0 coder.descriptor.TimingInterface]
Unit: 'rpm'
Range: [1×1 coder.descriptor.Range]
SupportTunableSize: 0
BreakpointSpecification: 'Explicit values'
Output: [1×1 coder.descriptor.DataInterface]
Breakpoints: [1×2 coder.descriptor.BreakpointDataInterface Sequence]
関連付けられているすべての coder.descriptor.LookupTableDataInterface オブジェクトと coder.descriptor.BreakpointDataInterface オブジェクトを取得します。
dataInterface = getAllParameters(parameterObj)
dataInterface =
1×3 heterogeneous DataInterface (LookupTableDataInterface, BreakpointDataInterface) array with properties:
Type
SID
GraphicalName
VariantInfo
Implementation
Timing
Unit
Range
バージョン履歴
R2020a で導入
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)