필터 지우기
필터 지우기

Error for Gain block in Simulink

조회 수: 5 (최근 30일)
Christo van Rensburg
Christo van Rensburg 2020년 7월 15일
댓글: Mathieu NOE 2021년 1월 8일
Hi there, I'm getting the following error when I try to type "1/(Ih+Ib)" into the parameter value of the Gain block in Simulink.
Both Ih and Ib are defined constants in the MATLAB workspace.
The error is: "Invalid setting in '.../Gain' for parameter 'Gain'."
Any advice on why this is not working. Seems like a simple thing that should not be a problem.
Thanks
  댓글 수: 3
AQILAH IZAM
AQILAH IZAM 2021년 1월 8일
hi , i have the same problem , so how i want to solve it . thankyou
Mathieu NOE
Mathieu NOE 2021년 1월 8일
hi
why not define directly in the workspace :
gain =1/(Ih+Ib)
and use that "gain" in the simulink gain block parameter

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by