I am getting an error in running the following model

2 visualizaciones (últimos 30 días)
Varun Nair
Varun Nair el 5 de Ag. de 2021
Respondida: Akshat Dalal el 21 de Mzo. de 2025
I tried building a motor controller using simulink and tried running but got the error as shown in figure below

Respuestas (1)

Akshat Dalal
Akshat Dalal el 21 de Mzo. de 2025
Hi Varun,
This error mostly occurs due to an unrealised divide by zero in the modelling logic. You can try the following steps to debug this further:
In the Configuration Parameters, set the diagnostic "Inf or NaN block output" to 'error', adter which you will get the following erro if you have an Inf or NaN:
An error occurred while running the simulation and the simulation was terminated
It will also list the block which is causing the error.

Categorías

Más información sobre Arduino Hardware en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by