Error for Gain block in Simulink

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 comentarios

Dinesh Yadav
Dinesh Yadav el 21 de Jul. de 2020
Can you share your model or provide replication steps? I created a simple model using gain block and constants from workspace and the model works just fine. It would be easy to diagnose the problem by having a look at your model.
AQILAH IZAM
AQILAH IZAM el 8 de En. de 2021
hi , i have the same problem , so how i want to solve it . thankyou
hi
why not define directly in the workspace :
gain =1/(Ih+Ib)
and use that "gain" in the simulink gain block parameter

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Configure and View Diagnostics en Centro de ayuda y File Exchange.

Preguntada:

el 15 de Jul. de 2020

Comentada:

el 8 de En. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by