Parameter Writer block not recognizing blocks

7 次查看(过去 30 天)
In image below I show a sim with a slider switch that modifies the constant block on the left.
This the uses a goto/from block to update the top right display.
I also want it to update a parameter writer block, which would then update the right constant block or the right gain block.
The parameter writer however doesn't recognize any of these blocks as having parameters that can be updated.
If i understand the warning, model blocks that have masks can't be written to by parameter writer?

回答(1 个)

Brahmadev
Brahmadev 2023-11-8
For R2021b and earlier, Parameter Writer block does not support writing to parameters of other blocks that are tunable during simulation. You can refer to the following section in the release notes for more information:
To work around this issue, updating your MATLAB version will be useful. If you would like to change the parameter values at the start of your simulation, you can follow the following documentation:
Hope this helps in resolving your issue!

类别

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

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by