I am trying to simulate a simple Micro inverter. Below is my Simulink Model :-
But somehow i am unable to connect Voltage Sensor to a scope. Even if i used a DC Source instead of Solar Cell.
What i have done is :-
Connected two capacitors in parallel with the Solar Cell/ DC Voltage Source to distribute the voltage.
Using two Thyristors each with antiParallel diode and using Resistive Load, I am trying to measure Voltage and Current of the Load Branch.
Issue : -
Voltage Sensor and The Current Sensor i am using is from Simscape/Electrical Sensor Library, but i am unable to connect it to a Scope or a MUX. How do i read my load outputs?
I am fairly new to EE SE & Simulink, so if any additional info is needed, Please drop a comment.
Thanks..
Answer
You are using SimScape, the physical simulation engine within Simulink. This is apparent from the use of "Domain Styles" for the interconnections
- Electrical = Blue
- Gas = Purple
- Hydraulic = Mustard
- Magnetic = Purple
- Mechanical = Green
- Thermal = Orange
- Liquid (thermal) = Yellow
- Fluids = L.Blue.
The 1st issue on your diagram is you are using the SimPowerSystems "PowerGUI" This is the legacy electrical domain & this block is needed for the other "specialised technology" blocks.
You have already started using base SimScape and this is the "modern" method & as such you need to place a Solver block to the gnd reference
Your actual question: How do i read my load outputs?
Simulink has multiple simulation domains. The base domain is the SIMULINK domain & in this domain the classic scopes,mux, etc exist.
There is then the PHYSICAL-SYSTEMS domain. This is fundamental domain of simscape and this is where physical signals can cross physical domains.
Finally there are specific domains that are listed above. Everything within the electrical domain can interact. Everything within the mechanical domain can interact. You cannot mix the two. The voltage sensor will create a signal in the PHYSICAL domain but this only facilitates interfacing with other simscape blocks. To interface with simulink you need a PS-Simulink converter
Below is an example of what you need todo
- remove the PowerGUI
- Attach the solver block to a node in the electrical domain (trace=BLUE)
- Connect voltage sensor to the electrical domain (trace=BLUE)
- Connect output of sensor to a PS-Simulink block (trace=BROWN)
- Connect output of converter to scope (trace = BLACK)
No comments:
Post a Comment