MATLAB Answers

Controlled resistor in simpowersystem?

4 views (last 30 days)
Frida Güereca Estrada
Frida Güereca Estrada on 5 Jun 2017
Answered: octavio hernandez on 13 Jun 2019
I can not connect the variable resistor (as you can see in the image), using current as an input signal
Is there any other block that has the same compatibility with simpowersystem?
I need to control the resistor in function of the current.

Answers (2)

Sebastian Castro
Sebastian Castro on 6 Jun 2017
The block you dragged in is from a different library which doesn't connect directly to Simscape Power Systems Specialized Technology. Looks like you're using an older release of MATLAB, but in newer versions they've tried to make this clearer.
What you'll have to do is create a custom resistor using a current sensor and a voltage source, so that you yourself implement the law V = I*R(t), where R(t) can be a time-varying input signal.
Note that you'll need to break the algebraic loop with some low-pass filter as shown below.
- Sebastian

octavio hernandez
octavio hernandez on 13 Jun 2019
I had the same problem and I could solve it add a block name it SIMSCAPE INTERFACE ELEMENT and SIMULINK-PS CONVERTER to convert the signal physical to a signal and use sensors of corrent-voltage. These blocks you can found in SIMSCAPE library-FOUNDATION LINRARY-ELECTRICALCaptura.JPG

Community Treasure Hunt

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

Start Hunting!