Effacer les filtres
Effacer les filtres

Error for Gain block in Simulink

5 vues (au cours des 30 derniers jours)
Christo van Rensburg
Christo van Rensburg le 15 Juil 2020
Commenté : Mathieu NOE le 8 Jan 2021
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 commentaires
AQILAH IZAM
AQILAH IZAM le 8 Jan 2021
hi , i have the same problem , so how i want to solve it . thankyou
Mathieu NOE
Mathieu NOE le 8 Jan 2021
hi
why not define directly in the workspace :
gain =1/(Ih+Ib)
and use that "gain" in the simulink gain block parameter

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by