필터 지우기
필터 지우기

Simulink subsystem with electric circuits?

조회 수: 9 (최근 30일)
Kevin Bachovchin
Kevin Bachovchin 2016년 1월 17일
답변: Sebastian Castro 2016년 1월 18일
Hello,
I know that it is possible in Simulink to have subsystems with some input and output where you have mathematical operations inside the subsystem. Is there a way to have a subsystem with an electric circuit rather than mathematical operations?
For example, say my subsystem is an RC (resistor, capacitor) circuit with a DC voltage source. Is there a way to have the value of the DC voltage source be an input to the subsystem and the resulting voltage across the resistor be an output of the subsystem? When I click on the voltage source block, in the resulting popup there is a parameter called “voltage”. Is there a way to set that voltage equal to the port input to the subsystem?
Thank you,
Kevin

채택된 답변

Sebastian Castro
Sebastian Castro 2016년 1월 18일
There is also a Controlled Voltage Source block, which is what you want to use.
Similarly, if you want to measure resistor voltage, you can place a Voltage Sensor across it.
Then, the same principles as in Simulink to create a subsystem hold. You can use the signals entering the voltage source/leaving the voltage sensor as subsystem interfaces.
- Sebastian

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by