ヘルプ センターヘルプ センター
アーキテクチャ オブジェクトのコンフィギュレーション パラメーターの取得
ParamValue = Simulink.architecture.get_param(Object,ParamName)
例
ParamValue = Simulink.architecture.get_param(Object,ParamName) は、オブジェクト Object の指定したパラメーターの値を返します。ParamName は大文字と小文字が区別されます。
Object
ParamName
すべて折りたたむ
モデル slexMulticoreExample の選択したアーキテクチャで、ソフトウェア ノード MulticoreProcessor のトリガー Core2 のタスク Task3 の周期を取得します。
slexMulticoreExample
slexMulticoreExample; p = Simulink.architecture.get_param('slexMulticoreExample/MulticoreProcessor/Core2/Task3','Period')
p = 0.2
パラメーターの値を返すオブジェクト。オブジェクトの絶対パス名を文字ベクトルとして指定します。指定できるオブジェクトは次のとおりです。
ソフトウェア ノード
ハードウェア ノード
周期的トリガー
非周期的トリガー
タスク
Simulink.architecture.get_param が値を返すパラメーター名です。
Simulink.architecture.get_param
ParamName に指定できる値は次のとおりです。
モデルの場合:
'ArchitectureName'
'Type'
ソフトウェア ノードの場合:
'Name'
ハードウェア ノードの場合:
'ClockFrequency'
'Color'
周期的トリガーの場合:
'Period'
非周期的トリガーの場合:
'EventHandlerType'
'SignalNumber'
'EventName'
タスクの場合:
Simulink.architecture.set_param | Simulink.architecture.add | Simulink.architecture.delete | Simulink.architecture.find_system | Simulink.architecture.importAndSelect | Simulink.architecture.profile | Simulink.architecture.register
Simulink.architecture.set_param
Simulink.architecture.add
Simulink.architecture.delete
Simulink.architecture.find_system
Simulink.architecture.importAndSelect
Simulink.architecture.profile
Simulink.architecture.register
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office