how to make task in simulink
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm trying to create a motor control simulation.
I would like to implement functions according to the execution cycle as if configuring actual motor control embedded software.
For example, I want to configure the current control subsystem so that this subsystem runs at a 1ms task, and the speed control subsystem calculates at a 5ms task.
How can I use Simulink to implement something like the example?
댓글 수: 0
답변 (1개)
Aquatris
2024년 7월 31일
편집: Aquatris
2024년 7월 31일
You can specify sample time of each block seperatly. Here is more information and how to do it for different blocks, subsystems ports etc.
Alternatively, you can define those task in a triggered/enabled subsystem and attach a signal that goes high for 1 sample every x seconds.
댓글 수: 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!