Simulink Tutorial - Tutorial 4 - solve algebraic loops and design of up and down counter
ฝัง
- เผยแพร่เมื่อ 1 ก.พ. 2025
- In this video I have explained how to solve algebraic loops in design while giving feedback from output to input. Also I have explained how to design up or down counter using basic blocks of simulink library.
This is an excellent demonstration Video. There is a minor missing information here because of which the model doesnt executed in the present form. The model comes up with an error message. The minor correction is, once the model gets completed, go to "Model Configuration Parameters setting". In that, change the default Solver Option of "Auto (Automatic Sover Section) to "Discrete (No Continuous State)". Also, change the default setting of Sover Type from "Variable Type" to "Fixed-Type". That's all!!!
Now run the Simulink Model. It gets executed easily.
Correct me if I'm wrong in my observations.
really like my learning progress based on your tutorials
Good job 😊
god job!! Expecting more logic videos like this!!
I'm working with Simulink and I have 2 doubts:
1) How would you do if you want that it counts 1 time per second for example? I mean, a counter sincronized with simulation time.
2) I'm working with a vector of continous signals that are changing its values. I want to implement a model that counts index from 1 to 7 (the vector's size). The counter must change its value only when the signal index value passes a limit number.
For example: it starts maintainig 1 until v(1) passes the limit value, then maitains 2 until v(2) passes the limit... and when v(7) passes the value it will maintain number 1 again
I've modeled it using the index vector block and a switch that turns 1 when signal overcomes the limit value and 0 when it's lower. That signal goes to a counter that resets its value to 1 when the vector value is higher than 7. If i include a 1/z block the indexing signal doesn't maitain the value and always changes to the lower one, I mean 000010101020202, instead of 00011112222
Thanks for reading and for the video too
i m happy dat it helped u and u watched it 😁
god job!! Expecting more logic videos like this!!
Hello Mam
I want to take online teaching from u on MATLAB Based Design
how to join up and down counter? means, 1 to 5 and then 5 to 1?
+
ChristinThomas91
Check out this image to implement 1 to 5 and 5 to 1 : ibb.co/SP2G8jy
got a question why your circuit did go well without a warning, because you are trying to use a continuous sample in a unit delay that usually uses a discrete sample, i design the same circuit but I got and warning, after solving the problem by solving the diagnostic "discrete as continuous" to none it works
Hello,
I would have a big problem. I have to create on simulink, a 2 to 4 decoder connected in parallel in a counter 0-15 (module 16), doing the increasing count. I have to use only the NOR logic gates. How can I create this project? I tried in every way but I was unable to implement anything. Thanks for your help.
thanks yar Namrata!u saved me :-P
Can please elaborate what is "Algeraic loop" means....?
I am getting algebraic loop error in powergui block. I am adding suggested delay block into it, but its not working. powergui block can not be edited, i think.
help.
how can do up down counter together ie suppose repeating from 0 to 10 and 10 to 0 again continuously
Check out this image to implement 1 to 5 and 5 to 1 : ibb.co/SP2G8jy
Change constant value to 10.
Great video!
But i get an error when I use unit delay block for this operation. It works well when I use memory block instead.
Even I'm getting the same result. My model is done exactly as explained in the video but, it is executed I get an error message for Unit Delay block saying, it needs to be replaced with Memory Block instead.
Helpfull video thank you.
Niceeeeeeeeeeeeeee ❤️❤️❤️❤️❤️
How can delay the signal without using delay block in simulink
Mam , speed control of single phase induction motor by using cyclo converter pr video upload kr dijiye..
Can you please explain how to done increment and decrement with same model upto 5
Check out this image to implement 1 to 5 and 5 to 1 : ibb.co/SP2G8jy
Hello. how we will design with reset and enable?
+Renjith Shenoi for enable you can watch the video at below link:
th-cam.com/video/vkpcpkEz0Ys/w-d-xo.html
For reset, add switch and check for reset condition and based on the condition which is true, send respective value to output
Many Thanks
For split phase motor
thanks
Bridge type cyclo converter
my model doesnt executed in the present form plz help me for this
Plz mam
Hi
Helpful! But it seems you are too slow.