What kind of signal does the contr-current source need in a Phasor-Simulation?

2 views (last 30 days)
Hi,
I'm working with SimPowerSystems.
I have a linear circuit with a controlled current source. I'm using the phasor simulation.
The basic idea of my controlled current source is that it produces a current that is calculated from a an active and reactive power. I split the act. and react. powers in equivalent real and imaginary current parts. THen they are converted with the "Real-Imag to Complex" Block to the complex data typ. This signal feeds the controlled current source.
*Now the Help Doc for the contr-current Source says the input signal of the source needs to be a complex phasor if phasor simulation is activated.
However, the source doesn't accept the complex double data type...*
The error message says: powergui/EquivalentModel1/Sources/Mux expects a signal of numeric type real. However, it is driven by a signal of numeric type complex.
....HELP!! I have no idea reight now!
Below you can see the error Message Matlab generates:
??? Error using ==> Regelkreis_erweitert_Init_and_Control at 102 --> Complex signal mismatch. Input port 2 of 'Regelkreis_Sothel_erweitert/Trafo Kabel Netz1/powergui/EquivalentModel1/Sources/Mux' expects a signal of numeric type real. However, it is driven by a signal of numeric type complex. --> Complex signal mismatch. Output port 1 of 'Regelkreis_Sothel_erweitert/Trafo Kabel Netz1/powergui/EquivalentModel1/Sources/From2' is a signal of numeric type complex. However, it is driving a signal of numeric type real.
Caused by: Error using ==> Regelkreis_erweitert_Init_and_Control at 102 Complex signal mismatch. Input port 2 of 'Regelkreis_Sothel_erweitert/Trafo Kabel Netz1/powergui/EquivalentModel1/Sources/Mux' expects a signal of numeric type real. However, it is driven by a signal of numeric type complex Error using ==> Regelkreis_erweitert_Init_and_Control at 102 Complex signal mismatch. Output port 1 of 'Regelkreis_Sothel_erweitert/Trafo Kabel Netz1/powergui/EquivalentModel1/Sources/From2' is a signal of numeric type complex. However, it is driving a signal of numeric type real

Answers (3)

Stephan
Stephan on 22 Apr 2012
I solved the problem by updating from R2008a to R2012a.

Prashant Tiwari
Prashant Tiwari on 25 Jun 2012
Hi stephan
i am gettting same error. could you plz let me knw the solution without updating software. is there any technical issue contain with model?

taiye jiao
taiye jiao on 31 Jan 2018
同样的问题

Community Treasure Hunt

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

Start Hunting!