Effacer les filtres
Effacer les filtres

Modify an input trajectory in simulink

1 vue (au cours des 30 derniers jours)
Windell
Windell le 4 Août 2017
Réponse apportée : Reen le 22 Août 2017
Hello, I have a staircase trajectory created in matlab and imported into simulink. This trajectory serves as the input into a control system. I would like the output of the control system to periodically modify the staircase trajectory say on a 1 second time basis. Although the controller may update at 1kHz. How would I do this? Is there an example that you might be able to provide?

Réponse acceptée

Reen
Reen le 22 Août 2017
I think this may help you. Here's a Simulink model for a custom stair input:
You can easily change the input frequency and amplitude, or even add in some starting value for the input. If you want you can even add some custom logic to the beginning to add a step whenever some event occurs in the system, reset at some time or value, or add logic to change the frequency or amplitude depending on the system state.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by