Simulink Dashboard Knob number of decimals

2 visualizaciones (últimos 30 días)
Vicente Casanova
Vicente Casanova el 20 de Oct. de 2020
Comentada: Vicente Casanova el 28 de Oct. de 2020
Is it possible to reduce the resolution (i.e. the number of decimals) of the knob?. I mean, when moving the knob it shoud stop (for example) in 4.2 or 4.3 but not in 4.23569871568....
Thanks

Respuesta aceptada

Rohit Pappu
Rohit Pappu el 27 de Oct. de 2020
The resolution of the knob can be adjusted using a block parameter called Tick Interval . Additional documatation about it can be found here
  3 comentarios
Rohit Pappu
Rohit Pappu el 27 de Oct. de 2020
As of now, Simulink Knobs only take continuous values and their precision cannot be customized.
Vicente Casanova
Vicente Casanova el 28 de Oct. de 2020
Thanks again.
I would try to do it with the Round functión.
Best regards

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Control Simulations with Interactive Displays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by