Parameter Writer block not recognizing blocks

7 ビュー (過去 30 日間)
Matthew Mishrikey
Matthew Mishrikey 2022 年 1 月 4 日
回答済み: Brahmadev 2023 年 11 月 8 日
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 Center および File ExchangeEvent Functions についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by