setBlockParameter
SimulationInput
オブジェクトin
を使用して特定のシミュレーションに使用されるブロック パラメーターを設定
説明
in = in.setBlockParameter(
は、プロパティ'BlockPath'
,'ParameterName'
,'Value'
,...'BlockPathN'
'ParameterNameN'
,'ValueN'
)ParameterName
とValue
を使用してBlockPath
で指定されたブロックにパラメーターを設定します。setBlockParameter
メソッドを使用すると、モデル参照階層にブロック パラメーターを指定できます。同じSimulationInput
オブジェクトを使用して、1 つのモデル内の複数のブロック パラメーターを設定できます。
getBlockParameter('BlockPath','ParameterName')
メソッドを使用すると、ブロック パラメーターの値を取得でき、removeBlockParameter('BlockPath','ParameterName')
メソッドを使用すると、Simulink.SimulationInput
オブジェクトからブロック パラメーターを削除できます。