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

1 次查看(过去 30 天)
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

回答(1 个)

Jan Houska
Jan Houska 2022-5-17
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

类别

Help CenterFile Exchange 中查找有关 Model Preparation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by