Simulink: resistor with variable resistance during simulation

15 ビュー (過去 30 日間)
Toverland
Toverland 2016 年 1 月 20 日
コメント済み: RAMI TROUDI 2021 年 11 月 18 日
Hi. I´m trying to find a way to change the resistance in a resistor during simulation in simulink. I have been using the fundamental blocks in the SimPowerSystem package from Simscape and I have a functional circuit for non-variable resistors. What I want is a resistor block were instead of the parameter R (ohm) I could insert a vector with different resistance values. Is there such a block or is there a way to create a block of this kind? I´m currently using the "parallel RLC branch" block for my electrical components.
I will be using this to model a thermal equivalent circuit for a loudspeaker and this variable shifting resistance is supposed to model the forced convection created by the membrane during operation.
  2 件のコメント
Yuebin Zhou
Yuebin Zhou 2016 年 1 月 22 日
It is not possible to change the value of the R/C/L parameters during the simulation. SimPowerSystems calculates the state-space equations for a given set of R, L, and C parameters just before the simulation starts. The ability to force changes in the R/L/C parameters will require re-computing state-space equations on the fly. Hence, these parameters are set to non-tunable.
If you want a variable resistor, please see the component below:
Pamela Jackson
Pamela Jackson 2020 年 4 月 29 日
In this example, it says to connect physical signal at thr R input port. What is this physical signal to connect to it?

サインインしてコメントする。

回答 (1 件)

Sebastian Castro
Sebastian Castro 2016 年 1 月 24 日
編集済み: Sebastian Castro 2016 年 1 月 24 日
The approach that Yuebin above proposed is good if you're using Simscape, SimElectronics, or the SimPowerSystems Simscape Components library.
If you're using SimPowerSystems Specialized Technology, these blocks won't directly connect. You would be better off creating a custom variable resistor as in the following example:
- Sebastian

カテゴリ

Help Center および File ExchangeElectrical Systems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by