Monday, January 17, 2011

HW1 Problem 2 Algebraic Loop

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

4 comments:

  1. 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.

    ReplyDelete
  2. I used a delay block. It looks like gain block is better choice.

    ReplyDelete
  3. If Gain=1 block works, that's a better choice

    ReplyDelete
  4. Thanks! I would not have guessed that one.

    ReplyDelete

Note: Only a member of this blog may post a comment.