how do i use multiple current sources in parallel

3 views (last 30 days)
I have tried connecting two controlled current sources in parallel to battery with switch in between. But switching is not happening? why?

Answers (1)

Aman Vyas
Aman Vyas on 27 Mar 2020
Hi,
I have checked your model completely and signals from voltage are completely fine.
Voltage starts to increase from 3.3V to some 4V value, and thus as per condition defined in matlab function which states v<3.7 so c1 gets high and current of -3A (in reverse direction) and even after v>3.7 c2 gets high and current of –3 A flows since the circuit and the parameters are totally symmetrical.
You are actually seeing the sum of the two added source and that is constant always.
Alternatively if it doesn’t work try putting relational operator at the gate terminal of the switch and simply compare then and there. You will get better understanding that way. Matlab function used can be removed in this way.
Hope this helps.

Categories

Find more on MATLAB 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!