Effacer les filtres
Effacer les filtres

How can I feed an array of data to my Simulink model when an event occurs?

3 vues (au cours des 30 derniers jours)
Shant
Shant le 20 Déc 2013
Commenté : Shant le 20 Déc 2013
Im feeding the array by a block called 'signal from workspace', and I want to start feeding this data when some distance is less then for example 50. I wrote a matlab fcn that checks the condition and returns zero or one. I also tried to use a trigger block from simulink, but it doesn't give good results when I simulate( it seems like that it did miss to feed the data).
I would appreciate if anyone could help out on how to feed pre-specified data to simulink based on events.
/Shant

Réponse acceptée

Anuj
Anuj le 20 Déc 2013
Modifié(e) : Anuj le 20 Déc 2013
You can use callback functions in your model.. have you tried this ?<http://www.mathworks.in/help/simulink/ug/model-callbacks.html?searchHighlight=callbacks >
  1 commentaire
Shant
Shant le 20 Déc 2013
No, I haven't actually. I will read about it and try to implement it. Thank you for the help!

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by