Currently the lamp indicator in my channel can only respond to one condition. How to let the lamp indicator respond to multiple conditions for example the lamp shows red colour when condition is 1 and the same lamp shows green colour when condition is 0?
5 Comments
Time DescendingUsing the buit in widget, you cannot use more than one color change. However, with MATLAB visualizations, you can build your own visualization that could show as many colors as your monitor will take.
Have a look at the traffic monitor channel as an example. The visualization there does green, yellow, and red to indicate the traffic level.
If you want to make a circle, I found this code which cracks me up becasue it uses the rectangle function to make a circle.
radius = 6;
centerX = 30;
centerY = 40;
myColor=[0.2,0.8,0.9];
rectangle('Position',[centerX - radius, centerY - radius, radius*2, radius*2],...
'Curvature',[1,1],'FaceColor',myColor);
axis square;
You can change the face color setting based on the action you want to indicate.
Sign in to participate