matlab - How can the output of a Simulink block be fed back as an input? -


i have 2 embedded matlab functions using create simulink model. both functions use output of second function input. getting error @ moment indicating invalid loop.

does know how implement type of behaviour?

screenshot showing model , error

you've created algebraic loop, means compute inputs of embedded matlab block directly dependent on outputs of block. not allowed when loop "self-loop", i.e. there 1 block in loop.

one way fix put unit delay block(s) somewhere on signal feeding embedded matlab block. see documentation on algebraic loops more information.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -