Getting the datatype of a signal from simulink

조회 수: 21 (최근 30일)
Sunu
Sunu 2013년 1월 17일
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
Sunu
Sunu 2013년 1월 17일
sorry got it

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by