How to change background colour of display block with a change in input - Simulink

12 ビュー (過去 30 日間)
Nicholas Caygill
Nicholas Caygill 2019 年 8 月 22 日
回答済み: Jonas 2019 年 8 月 22 日
Am trying to create a simple alarm system simulation for a process in Simulink using constant blocks, relational operator blocks and displays. What I would like to be able to do is have the backgroud change colour of the display block change with its change of state when I run the the simulation. For example the display to show as green when it displays 0 and red when it displays 1. Any help would much appreciated.

回答 (1 件)

Jonas
Jonas 2019 年 8 月 22 日
I suggest you take a look at the Simulink Dashboard elements. You can add a LED directly in your Simulink model which is linked to a signal and can turn red or green based on the signal value.

カテゴリ

Help Center および File ExchangeSources についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by