How can I add a PS control port to a Spice imported Simscape block?

3 visualizzazioni (ultimi 30 giorni)
Hello MATLAB Team,
recently I imported a GaN-Transistor-SPICE-file to Simscape and with your good documentation it was quite easy. For my model I need to connect the Simscape-GaN-Transistor-block with a MATLAB Function. The problem is that the Simscape-GaN-Transistor-block has no PS control port. It follows to the fact I'm not able to connect the MATLAB Function with a Simulink-PS-Converter to the Simscape-GaN-Transistor-block.
Is it possible to implement the PS control port into the Simscape-GaN-Transistor-block SOURCE CODE?
Hope for your quick help
Niklas

Risposte (1)

Geetla Sindhu
Geetla Sindhu il 4 Ott 2022
Hello Niklas,
I understand that you are trying to connect Simscape-GaN-Transistor-block with a MATLAB function or any Simulink block.
In order to solve the issue, you can try the workaround provided below:
  • Go to Simscape >> Electrical >> Semiconductors & Converters >> Gate Driver. Double click on the Gate Driver block and select the Modeling option as “Electrical input ports”.
  • An integrated circuit called a gate driver is used to control the gate, or switch, of a MOSFET. The gate driver receives a low-power PWM signal and amplifies it to produce the high current required to drive a MOSFET/switch gate.
  • Add Controlled PWM Voltage block from Simscape>> Electrical >> Integrated Circuits. Set the Modeling option as “PS input”.Like the Gate Driver block, the Controlled PWM Voltage block can be configured to take either a physical signal or electrical domain signals as inputs. In the physical signal input configuration, you can directly specify the duty cycle. The block will then output the appropriate PWM voltage based on the block parameters. The “u” port of the Controlled PWM Voltage accepts a physical signal value between 0 and 1.
Please refer to the documentation given below for further information:
Thank you.

Tag

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by