Hi Sarah,
I have investigated the model. There are some connection and parameter issues in your model.
- The two H-bridge inverters are not connected in cascade.
- You are not using snubber (i.e., Snubber resistance = 0 and Snubber capacitance = inf) which results in no parallel path with the "IGBT". This causes an open circuit error in the circuit when all the switches are open.
However, after fixing the above issues, I could run the circuit, but only 3 levels were obtained, i.e., 0, 30, and 30. I have attached a model named "H_5_9_modified.slx" herewith. The reason for only 3 levels is that both inverter circuits are on at the same time. For 5 levels, i.e., 0, 10, 30, -10, and -30, the voltage levels 10 and -10 need to be obtained. These can be done with the two following switching patterns:.
- On state gate pulses: Inverter 1 -> S1A & S1A2 Inverter 2 -> S1B & S3B. This will turn on S1, S2, S5, and S7. This will give a +10 voltage level.
- On state gate pulses: Inverter 1 -> S1A3 & S1A1 Inverter 2 -> S2B & S4B. This will turn on S1, S2, S6, and S8. This will give a voltage level of -10.
But this switching pattern is not there in your model switching pulses. It can be found in the following screenshot.
However, an alternative to this is using reverse diodes with the IGBT or using the "IGBT/DIODE" block (available at Simscape / Electrical / Specialized Power Systems / Power Electronics). The reverse diode helps get the extra voltage levels in the output voltage. I am attaching another model named "H_5_9_IGBTDiode.slx" which implements the inverter circuit for the "IGBT/DIODE" switches. I have obtained 7 levels of voltage, i.e., 0, 10, 20, 30, -10, -20, and -30 with this.
A level shifted PWM technique has been used in the following model in File Exchange. You may find this useful.
Hope this helps in resolving the issue.