Effacer les filtres
Effacer les filtres

Script to create instance of bus signal and write it to the data dictionary

9 vues (au cours des 30 derniers jours)
Bo Cao
Bo Cao le 20 Déc 2019
I would like write a script that does the following:
  1. Create an instance of a bus signal included in a data dictionary
  2. Set the values of the members of the bus signal to 0.
  3. Write this instance to the data dictionary.
Can it be done? If so, how to do it?
Thanks!

Réponses (1)

Kavya Vuriti
Kavya Vuriti le 31 Mar 2020
Hi,
To create bus objects or bus elements programmatically, you could refer following documentation:https://www.mathworks.com/help/simulink/ug/create-bus-objects-programmatically.html#bvf4tak

Catégories

En savoir plus sur Event Functions 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