pause to control pumping time
이전 댓글 표시
start(p1.t);
pause(pumptime1)
stop(p1.t);
start(p2.t);
pause(pumptime2)
stop(p2.t);
these are my pumping code that i can run very well. However there is still a problem that when I make the pumptime1 smaller than pumptime2, the pumps would stop same time when the pause(pumptime2) is over. while the opposite way can work well. Please help me to figure out whats wrong. Very Thanks!
댓글 수: 6
Walter Roberson
2018년 8월 9일
I would have expected a structure more like
start(p1.t);
start(p2.t);
pause( max(pumptime1, pumptime2) );
stop(p1.t);
stop(p2.t);
?
Kuang-Yu WANG
2018년 8월 9일
편집: Kuang-Yu WANG
2018년 8월 9일
Walter Roberson
2018년 8월 9일
What is p1.t ? Is it a timer() object?
Kuang-Yu WANG
2018년 8월 9일
Walter Roberson
2018년 8월 9일
I suspect we will need to see the functions associated with the timers.
Kuang-Yu WANG
2018년 8월 9일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!