- Right click on your embedded matlab function block and go to Subsystem Parameters....
- Select the check-box Treat as atomic unit.
- Enter the block sample time value in Sample time property.
embedded matlab function block sample time
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi
I wanted to know if it is possible to change the sampling time with which the embedded matlab function block is executed. Basically my solver time is 1e-6. However i want the embedded matlab function block to run at 20e-3.
댓글 수: 0
답변 (1개)
TAB
2012년 7월 3일
편집: TAB
2012년 7월 3일
Always make sure that, for multirate simulink system, your block sample time must be integer multiples of model's base sample time.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Schedule Model Components에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!