How to add tuneable Parameter to a Desktop Real Time Simulation on the example Water Tank

1 visualización (últimos 30 días)
Hello,
i'm trying to add a tuneable Parameter to the example of the Water Tank. But if i add an constant Block with an toggle switch i've got the following issue:
Cannot change parameter 'Value' of 'sldrtex_dashboard/Constant' while simulation is running. The block was made virtual as it was optimized for simulation
Where can i add this Block to the turnable Parameters. This Tutorial did´nt help me :
Link to the Example :
Matlap Version 2022a

Respuestas (1)

Jan Houska
Jan Houska el 17 de Mayo de 2022
Hi Lars,
the constant block must be connected to some other block where it has some effect on the result of the simulation. If you leave it unconnected or terminate it, the optimizer will eliminate it from the model.
Good Luck, Jan

Categorías

Más información sobre Model Preparation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by