Simulink: THERMAL resistor with variable resistance during simulation

조회 수: 3 (최근 30일)
Ender Wiggin
Ender Wiggin 2017년 6월 13일
답변: Vandana Rajan 2017년 6월 16일
Hi. I´m trying to find a way to change the resistance in a THERMAL resistor during simulation in simulink. There is no ready to use block for that in simulink library (theres just one for eletrical resistor).
I would like to you my Signal * R* as a variable value of the thermal resistor block. Maybe there is a way to save that signal as variable in Model explorer and use it as a value for this Block?

답변 (1개)

Vandana Rajan
Vandana Rajan 2017년 6월 16일
Hi,
You can create a custom component for your use case.
See the code structure of "my_resistor.ssc". Here R is a fixed parameter. You can change it to be an input parameter. To see how to do this, take the source code of the block 'variable resistor'. Double click on the block and you will see a link for 'source code'. Open it and examine how R is given there. You will see like this
inputs
R = { 0.0, 'Ohm' }; % PS:left
end
This will make R as an input parameter.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by