How can I exctract 2 values from a 1-by-3 array in Simulink ?

조회 수: 4 (최근 30일)
jefazo jefazo
jefazo jefazo 2020년 4월 15일
댓글: Jonas 2020년 4월 15일
Hi everyone,
I am using the Surface Mount PMSM block from the Motor Control Blockset in Simulink to develop an FOC algorithm. The output of the block (PhaseCurr) is a 1-by-3 array containing my 3 phase currents a, b and c. How can I extract the 2 currents (phase a and b) from my array in Simulink so that I can process them in the Clarke transform ? Please any help would be appreciated.

답변 (1개)

Jonas
Jonas 2020년 4월 15일
편집: Jonas 2020년 4월 15일
Use a Demux block with three outputs to extract the three signals, and then another Mux block with two inputs to combine the two you want again.
  댓글 수: 4
jefazo jefazo
jefazo jefazo 2020년 4월 15일
Hi, thanks again for you answer @Jonas. By any chance have you used Simulink's Motor Control Blockset before (MATLAB 2020a) ? I am struggling to understand how to set up a few blocks in there to develop a Field-Oriented Control algorithm. Your help would be really appreciated.
Jonas
Jonas 2020년 4월 15일
No I have not used it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 C2000 Microcontroller Blockset에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by