I am getting an error in running the following model

조회 수: 1 (최근 30일)
Varun Nair
Varun Nair 2021년 8월 5일
답변: Akshat Dalal 2025년 3월 21일
I tried building a motor controller using simulink and tried running but got the error as shown in figure below

답변 (1개)

Akshat Dalal
Akshat Dalal 2025년 3월 21일
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.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by