Parameter writer block use case issue

11 次查看(过去 30 天)
Added TEMP variable in Model workspace and assigned this variable to constant block.
Contant block is linked with Parameter Writer block to perform logic. after compiling the Model showing following error meassage:
Parameter Writer block /Initialize Function/Parameter Writer1' is unable to write to the parameter 'Value' of the block 'ModelTest/TEMP' because the block is initialized with a mask parameter or workspace variable on its dialog. Writing to such parameters using the Parameter Writer block is not supported

回答(1 个)

Mark McBroom
Mark McBroom 2024-2-17
It sounds like the value for the Constant block is not TEMP. You need to double click on the Constant block and enter "TEMP" as the Constan block value.
  1 个评论
Sameer
Sameer 2024-2-28
Thank you Mark.
I'm encountering an issue while attempting to develop a model using the Parameter Writer block. Despite attempting to configure parameters through both Validate Parameter and Access Model Workspace settings, the problem persists. I have attached a dummy model for reference.
Parameter Writer block 'dummy/Triggered Subsystem/Subsystem2/Parameter Writer' is unable to write to the parameter 'Value' of the block 'dummy/Triggered Subsystem/Subsystem2/AsA22' because the block is initialized with a mask parameter or workspace variable on its dialog. Writing to such parameters using the Parameter Writer block is not supported

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

标签

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by