generate text in simulink
16 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Guy Rouleau
2012-6-4
编辑:John Kelly
2015-3-2
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!