Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Led OnColor/Status

I have a  WebUserControl, In this control I have an UpdatePanel and, finally, in this panel I have my LED.
The is triggered by a timer. In the panel I have other controls (labels, TextBoxes, ecc..).
Each time the panel is updated a routine reads some info from a DB and updates all the controls in the panel with the exception of the Led.ONColor prop.
Really in the code I can see the value of this prop in the right way but on the page it is not refreshed.
Only if I cause a postback of the page (witch contains the UserControls) the Led.Oncolor is refreshed.
 
Thanks
 
Gianluca
0 Kudos
Message 1 of 2
(2,980 Views)

Hi Gianluca,

without seeing any of your code, I am wondering if you are also setting the value of the led. Led.ONColor property only works if the value of the led is true.

In the Measurement Stusio Help you can find useful information and example about creating a custom style for LED controls:

ms-help://NI.MeasurementStudio.2005/NINETWinFormsConcept/XML/Create_Custom_SwitchLED_Style.html#LED.

I hope this helps

 

Clara

0 Kudos
Message 2 of 2
(2,940 Views)