필터 지우기
필터 지우기

Set passive RLC branch component values via a Constant block?

조회 수: 3 (최근 30일)
Benjamin Shaffer
Benjamin Shaffer 2020년 3월 12일
댓글: Aman Vyas 2020년 3월 24일
I am trying to use MATLAB to determine R, L, and C values for a simulation model that is being run on an OpalRT target. I am using Python scripting to interface MATLAB and the OpalRT system, since both can be run from and return data to a Python script. The OpalRT system treats Constant blocks like inputs from the host, allowing programmatic model updates. I would like to simulate a simple RLC filter as a proof of concept for this system.
Is there any way to update the R, L, and C values in a Simscape model using Constants blocks?
An alternative is to transform the circuit into an ODE and simulate it that way, but this would be fairly limiting..

답변 (1개)

Aman Vyas
Aman Vyas 2020년 3월 17일
Hi,
Simulink supports attaching a block to another block called Slider to vary its value within a range during Simulation. Link three sliders to each R, L and C blocks and then inside slider properties try providing the values to it.
You can also set maximum and minimum values of each block based on the variations you wish to have.
Refer to this documentation link:
Hope this solves the issue!
  댓글 수: 2
Benjamin Shaffer
Benjamin Shaffer 2020년 3월 17일
Thanks for your suggestion! I think I will just use the ODE model instead.
Aman Vyas
Aman Vyas 2020년 3월 24일
Yeah that is also correct or else you can try proceeding with this too.

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by