Data Types of Signals in a Bus Selector
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, Is it possible to get the data-type of the signals in a bus-selector programmatically. any help will be appreciated. Thanks
0 commentaires
Réponses (1)
Ismael Alcalá
le 28 Nov 2012
Modifié(e) : Ismael Alcalá
le 28 Nov 2012
Hi Deepak, you can select the bus-selector block in simulink and execute in matlab:
portHandles = get(gcbh,'PortHandles')
mStruct = Simulink.Bus.createMATLABStruct(portHandles.Outport)
Then you can find all signal types in the bus selector using class for each signal
class(mStruct.Message1.signal)
ans =
int16
I hope this can help you,
I. Alcalá
0 commentaires
Voir également
Catégories
En savoir plus sur Sources 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!