This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GUIComposer LED light feedback

Is there an LED light widget for GUIComposer or plans for having one? It would be nice to turn on a light if a variable meets a condition or threshold. For instance 0 = OFF, 1 = ON. Or <50=OFF, >=50 = ON. You could even get fancy with different colors for different values.

  • Hi Salvatore, 

    You could use MultiImage widget to perform this functionality. MultiImage widget can accept images to be displayed based on the value of a variable that widget is bound to. Thus you could add a green light, yellow, red LED images that provide you visual status information based on the value of the variable. 

    Add images by right clicking in Projects area and choose "Add Files" from context menu, add your image files and then drag and drop MultiImage widget. There should be a pop up asking you to choose images to be used. By default first image will be displayed when bound variables = 0, second image when value = 1 and so forth. If you would like more advanced logic to determine which image to display, then you could create a pre processing function that can interpret the value and then return appropriate image index. See topic below for more information on how to setup pre processing functions. 

    http://processors.wiki.ti.com/index.php/Data_Formatting_and_Transformation

    Martin