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

2 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Jan Houska
Jan Houska il 17 Mag 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

Categorie

Scopri di più su Model Preparation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by