Hi all,
Is anyone else having a problem with an "algebraic loop" in problem 2 of HW#1? I hooked up the ig output of the synchronous buck block to the ig input of the LC filter block, thus creating said loop. I think the problem is that the synchronous buck block requires vg to compute ig, and the LC filter block requires ig to compute vg, thus creating a circular reference. But I'm not sure how to accurately model it otherwise.
Thanks,
Josh
Ok - I think I solved my own problem. It appears that Simulink does not like it when you feed an output from an embedded matlab function into an input of another embedded matlab function. Put a Gain=1 block in between and it's all good.
ReplyDeleteI used a delay block. It looks like gain block is better choice.
ReplyDeleteIf Gain=1 block works, that's a better choice
ReplyDeleteThanks! I would not have guessed that one.
ReplyDelete