How to create an impedance from R and X time-varying values ?

조회 수: 3 (최근 30일)
Nicolo Blini
Nicolo Blini 2018년 5월 27일
댓글: Saeed Rezaee 2020년 7월 28일
Hi everyone. I'm a newbie on Matlab and Simulink.
I have two different equations that give me R and L values, but these values change over time. (differential equations)
I'm trying to simulate their behaviour with Simulink but there is a problem: if I want simulate only the resistance component it's easy. I can use a "Controlled Voltage Source".
But I would simulate both in order to create an "impedance (R+jwL)" so I can work with phase shift and phasors. I tried to use a variable inductor from RF blockset but it doesn't work.
I tried also a "Controlled Current Source" to simulate the L value but then I had some Simulink error.
Does anyone have any ideas or suggestions ?
Thanks a lot.
  댓글 수: 1
sloppydisk
sloppydisk 2018년 5월 27일
Do you want to simulate the differential equations directly or just pop in the ready-made electrical elements in SimScape? For the latter you could just use the linear inductor , right?

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

답변 (1개)

Nicolo Blini
Nicolo Blini 2018년 5월 28일
I would like to simulate them directly. I already tried to use SimScape and linear inductor but I don't like it. I have to use a lot of Simulink-PS converters to connect other blocks.
  댓글 수: 1
Saeed Rezaee
Saeed Rezaee 2020년 7월 28일
If it is a simple RL impedance, you just need to use a controlled current source where the measured current is passed through an integrator and the output is the control input of the source. Next, you just need to integrate a ramp or any varying block in the control loop that generates the current based on the differential equation that rules the RL circuit; alternatively you can use a PI block where the gains are set as external inputs. You should be able to build a generic series or parallel RLC impedances as well.

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

카테고리

Help CenterFile Exchange에서 Switches and Breakers에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by