how to make task in simulink

2 vues (au cours des 30 derniers jours)
DongJun Kim
DongJun Kim le 31 Juil 2024
Modifié(e) : Aquatris le 31 Juil 2024
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?

Réponses (1)

Aquatris
Aquatris le 31 Juil 2024
Modifié(e) : Aquatris le 31 Juil 2024
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.

Catégories

En savoir plus sur Schedule Model Components dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by