Effacer les filtres
Effacer les filtres

How to solve the problem?

31 vues (au cours des 30 derniers jours)
vasu
vasu le 22 Jan 2014
Modifié(e) : Walter Roberson le 26 Août 2018
Sir/Madam, I m doing my project Modeling and Control of a Renewable Hybrid Energy System With Hydrogen Storage. Here i m using the wind turbine induction generator(phasor block). It gives one error " Complex signal mismatch. Input port 1 of 'wind_turbine/Wind Turbine Induction Generator (Phasor Type)/B1/Mode V' expects a signal of numeric type real. However, it is driven by a signal of numeric type complex "Pls give me the suggestion... Thank you

Réponses (1)

Walter Roberson
Walter Roberson le 22 Jan 2014
In Simulink, by default, if you have an operation (such as sqrt()) on a value such that Simulink cannot prove that the result will be real-valued, then the output signal type will be set to "complex" instead of "real". The signal type does not vary with the inputs. It could be that with the particular inputs and logic that Simulink's reasoning engine is inadequate to come up with the proof, but if Simulink thinks that it might turn out complex then Simulink marks it as complex. For any step that it turns out to be real-valued, the complex component would of course be 0.
You can find the line that is being set as complex (you might have to hunt back a few blocks) and tell Simulink to mark the line as real. If you do that and Simulink encounters a value for which the output needs to be complex, Simulink will throw an error at run-time. You can insert a conversion block that throws away the complex part, but you better understand what it means mathematically and physically before you do that.
  13 commentaires
Walter Roberson
Walter Roberson le 26 Août 2018
Please start a new question for that. When you do, be sure to indicate if you are using a level 1 S function or a level 2 S function.
Kh zaa
Kh zaa le 26 Août 2018
Modifié(e) : Walter Roberson le 26 Août 2018
when i start a new question, no one answer me ! here is the question: https://www.mathworks.com/matlabcentral/answers/416288-delay-time-s-function

Connectez-vous pour commenter.

Tags

Aucun tag saisi pour le moment.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by