How can I introduce a variable resistance in simulink ?

In my simulation I need to discharge a battery by introducing a variable resistor in matlab Simulink, the values of this resistor are declared by: ‘’ from workspace’’ bloc. I tested the variable resistor from Simscape, but we can not connect it with a block from workspace. Thanks for helping.

3 Comments

Can you share your model and all necessary variables?
this is my model. On the one hand, the PV allows to charge the battery, on the other hand, I want to introduce a profile of the real load which allows to distcharge the battery.

Sign in to comment.

Answers (1)

Use the following component: https://in.mathworks.com/help/physmod/simscape/ref/variableresistor.html

2 Comments

we can not connect this component with 'from workspace' bloc. The idea is to vary the resistance according to a real load variation that I have in excel format. The load which I have is a ventilator, the speed varies according to a feedback.
Hi, could please tell me how can I make the connection between the real load and the variable resistors? what is the best way to implement this?
Many thanks.

Sign in to comment.

Commented:

on 19 Jun 2019

Community Treasure Hunt

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

Start Hunting!