Parameter Writer block not recognizing blocks

6 visualizaciones (últimos 30 días)
Matthew Mishrikey
Matthew Mishrikey el 4 de En. de 2022
Respondida: Brahmadev el 8 de Nov. de 2023
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?

Respuestas (1)

Brahmadev
Brahmadev el 8 de Nov. de 2023
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!

Categorías

Más información sobre Event Functions en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by