Getting the datatype of a signal from simulink

19 次查看(过去 30 天)
I am trying to get the datatype of enumerated signal from the model programmatically, so that I can set its default value to one of the enumerations. If I do Format> Port/Signal Displays> Port Data types , we can see the datatype. But I want to find them with a script.

回答(1 个)

Kaustubha Govind
Kaustubha Govind 2013-1-17
Please see this answer.
  2 个评论
Sunu
Sunu 2013-1-17
hey, do you know how to close the model beacuse I get the error ...cannot close the model as it is being compiled or simulation is running

请先登录,再进行评论。

类别

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