How to solve the problem?
28 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Walter Roberson
2014-1-22
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 个评论
Walter Roberson
2018-8-26
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
2018-8-26
编辑:Walter Roberson
2018-8-26
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discontinuities 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!