필터 지우기
필터 지우기

Help with switch case on simulink ?

조회 수: 6 (최근 30일)
Steve
Steve 2015년 3월 21일
댓글: Naty S 2015년 3월 22일
Hey everyone,
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
Naty S
Naty S 2015년 3월 22일
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?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 PID Controller Tuning에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by