Simulink: resistor with variable resistance during simulation

52 views (last 30 days)
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 Comments
Yuebin Zhou
Yuebin Zhou on 22 Jan 2016
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 on 29 Apr 2020
In this example, it says to connect physical signal at thr R input port. What is this physical signal to connect to it?

Sign in to comment.

Answers (1)

Sebastian Castro
Sebastian Castro on 24 Jan 2016
Edited: Sebastian Castro on 24 Jan 2016
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

Categories

Find more on General Applications in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!