Getting a "Complex Signal Mismatch" error while modeling a synchronous generator in Simulink

2 views (last 30 days)
I have modeled a synchronous generator in Simulink using equations in MATLAB function block, which is receiving input signals from the exciter block, etc. and also a feedback from its integrator as well. The issue is that the output "y" of the Generator MATLAB function block has both real and complex values (14x1), specifically the current outputs (id, iq, iF, iD, etc.) are complex. The integrator expects real values and hence I'm getting the "Complex signal mismatch" error. I've been trying to searching for a solution on this forum but I haven't been able to find it. I know there are other threads related to this question but none of them has described a clear solution.
Could anyone please help?

Answers (0)

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!