Variable Resistor
Discrete variable resistor
Libraries:
Simscape /
Electrical /
Specialized Power Systems /
Passives
Description
The Variable Resistor block represents a linear time-varying resistor. It implements a discrete variable resistor as a current source. The resistance is specified by the Simulink® input signal. The resistance value can be negative.
Equations
The block uses the following equations for the relationship between the voltage, v, across the device and the current through the inductor, i, when the resistance at port R is R:
When you use a Variable Resistor block in your model, set the
powergui block Simulation type to
Discrete
and select the Automatically
handle Discrete solver and Advanced tab solver settings of blocks
parameter in the Preferences tab. The robust discrete solver is
used to discretize the electrical model. Simulink signals an error if the robust discrete solver is not used.
Ports
Input
Conserving
Parameters
Extended Capabilities
Version History
Introduced in R2019b