generate text in simulink
이전 댓글 표시
I am looking to how we can generate text as a output of an action in simulink.I mean i want to simulink show me specific text when one switch or relay position changed.
댓글 수: 3
Kaustubha Govind
2012년 5월 31일
In general, characters/text is not a valid datatype in Simulink, but there might be workaround depending on *where* the text needs to be displayed. Could you specify that information?
K E
2012년 6월 4일
For example, change the switch block annotation depending on the switch position?
mohammad seifi
2013년 12월 28일
답변 (1개)
Guy Rouleau
2012년 6월 4일
편집: John Kelly
2015년 3월 2일
0 개 추천
There are 2 possibilities here:
1 - It is possible to define enumerated types in Simulink. With those, you can define for example 1=Red, 2=Blue, 3=Green, and see the text instead of the number in the Display block.
Look here for an intro on the concept: http://www.mathworks.com/help/simulink/ug/defining-simulink-enumerations.html
And to this function to define the enumerated type: http://www.mathworks.com/help/toolbox/simulink/slref/simulink.defineintenumtype.html
2 - If all you want is display some text on a block mask or an annotation, then you can use a MATLAB S-Function or an Event Listener to execute any "set_param" you need to make that happen.
카테고리
도움말 센터 및 File Exchange에서 String에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!