How do I initialize three phase programmable voltage source (in simulink) using MATLAB algorithm (code written in matlab)?

I have included a MATLAB Function block which has to take inputs from the measurement blocks in simulink model; run an algorithm to calculate desired voltage values and then pass the outputs of code back to simulink model to a three phase programmable voltage source. I am not able to implement this integration part.

답변 (1개)

Luciano Alves
Luciano Alves 2017년 1월 5일
이동: Sabin 2022년 12월 21일
It's not necessary to use the MATLAB function block. You can use the CallBacks: in your simulink model go to File-->Model Properties -->Model Properties -->CallBacks-->InitFcn (put your algorithm code here).

카테고리

도움말 센터File Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기

질문:

2016년 12월 3일

이동:

2022년 12월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by