Up and down counter
Mostra commenti meno recenti
Hi All:
I am using Simulink, In which I need to count Up and Down depending upon the input values.
Can anyone help me out that is their any way to internallay switch the counter from counting Up to Down or from Down to Up. Or is heir any way to provide the Initial value to the counter from out side the counter block.
If not possible then what should be the ulternate to such sort of problem.
1 Commento
Risposte (2)
C.J. Harris
il 19 Lug 2012
0 voti
I would suggest using either an integrator block with external initial conditions and a switched input, or design a Stateflow block to do this by having a 'CountUp' and a 'CountDown' state.
Lokesh Bugata
il 14 Lug 2018
0 voti

1 Commento
Lokesh Bugata
il 14 Lug 2018
Try this you will get the up down counter output
Categorie
Scopri di più su Interactive Model Editing in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!