Help with switch case on simulink ?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hey everyone,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148191/image.jpeg)
Attach is the subsystem I am working on.
So far what it does : The analog input pin from the arduino outputs a value from 0-800. I have two switch blocks. The bottom, switch 2 accepts the input from the arduino, and if it is higher than zero it carries PID ( med buc1) to the other switch else it if it is less than or equal to zero it carries PID (buc ) to the other switch. The other switch, switch1 carries PID (Ful buc1) if the arduino input is greater than 600 else if is not greater than 600 it carries PID (Med buc1).
I would like that if I am in PID (Ful buc1) or PID (med buc1) and I am increasing the value in the slider that it automatically goes to PID (buc) and uses it.
Kind Regards, Steve
1 Commento
Naty S
il 22 Mar 2015
Sorry but I didn't understand the problem. You want that if the Slider gain is above a specific value you want to choose the buc block?
Risposte (0)
Vedere anche
Categorie
Scopri di più su PID Controller Tuning in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!