![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1463212/image.png)
How to have variable as time-dependent in Stateflow?
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm applying the stateflow as the controller for a Lock-up Clutch (Friction Disk Clutch feature) in a Torque converter so that they have two state:
State A: The clutch is close with a certain value of pressure (for example 0.1 MPa).
State B: When my vehicle is coasting to a certain speed at t0 (for example 20th seconds of the simulation), the clutch pressure is gradually reduced from the moment t0. In this case, How can I get the value of t0 and use that as the input for pressure calculation?
댓글 수: 0
답변 (1개)
Nathan Hardenberg
2023년 8월 23일
Check out this MATLAB documentation example:
This is pretty much what you need. I adapted it a bit for your case, but you will be able to build it in a few minutes. This outputs 0 until t0 (=3) is reached and then outputs the current time.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1463212/image.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Automotive Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!