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
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
K E 2012 年 6 月 4 日
For example, change the switch block annotation depending on the switch position?
mohammad seifi
mohammad seifi 2013 年 12 月 28 日
Dear Govind;
Display only shows number,if we want to show a text after certain condition, is there any way to display string or text? I want to display a "text" look like Disp command in Matlab.Is it possible in GUI? Thank you

サインインしてコメントする。

回答 (1 件)

Guy Rouleau
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.
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.

カテゴリ

製品

タグ

質問済み:

2012 年 5 月 31 日

編集済み:

2015 年 3 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by