Data Types of Signals in a Bus Selector

7 次查看(过去 30 天)
Hi, Is it possible to get the data-type of the signals in a bus-selector programmatically. any help will be appreciated. Thanks

回答(1 个)

Ismael Alcalá
Ismael Alcalá 2012-11-28
编辑:Ismael Alcalá 2012-11-28
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á

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by