matlabsimulinksimscape

Simulink: resistor with variable resistance during simulation


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 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.


Solution

  • Simscape has a variable resistor block. You should be able to use that instead. The instantaneous resistance value is provided as a physical signal input to the block.

    enter image description here