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.

2 comentarios

MATLAB function block is in the master subsystem of my simulink model

Iniciar sesión para comentar.

Respuestas (1)

Luciano Alves
Luciano Alves el 5 de En. de 2017
Movida: Sabin el 21 de Dic. de 2022
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).

Categorías

Más información sobre Electrical Block Libraries en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Dic. de 2016

Movida:

el 21 de Dic. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by