How can I link and run a script to work with a simulink model?

3 ビュー (過去 30 日間)
Dioner Rondon
Dioner Rondon 2018 年 10 月 27 日
回答済み: Sabin 2023 年 9 月 29 日
Hello.
I am currently studying Power Inverters, with the aim of building a 27 level inverter.
I successfully simulated the simple inverters using bipolar and unipolar PWM modulations. For these simulations I used sine and triangular waveforms and logic elements to generate the switching of IGBTs.
Now I want to make a program that will generate the pulses, think about as if you were substituting the sine, triangular and logic elements, for a microcontroller (that's how I will implement it in real life).
I am thinking on programing a script that will generate S1 S2 S3 and S4 vectors, however I still don't know how to link the script with the simulation, timing and everything.
Any help would be apreciated, thank you.
  1 件のコメント
Aquatris
Aquatris 2018 年 10 月 29 日
There are block in simulink that get data from workspace. Depending on the signals you have you can either use "from workspace" or "repeating sequence" blocks.

サインインしてコメントする。

回答 (1 件)

Sabin
Sabin 2023 年 9 月 29 日
Use a MATLAB Function block in Simulink if you want to use MATLAB code in simulation:

カテゴリ

Help Center および File ExchangePulse width modulation (PWM) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by