LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay in changing the state of LEDs

Solved!
Go to solution

Hi

        I am using 6 LEDs in my application. I am changing the state of LED using SetCtrlVal() function.

But for 3 LED's the change happens after some delay(around 5sec delay). I don't know how to solve

this issue. Please any me on this.

 

Thanks and Regards

NB

0 Kudos
Message 1 of 4
(3,160 Views)
Solution
Accepted by topic author Nagraj B

Hi,

 

without further details one can only speculate: do you happen to set your LED state in a callback? In this case it might help calling ProcessDrawEvents() after your SetCtrlVal() function.

0 Kudos
Message 2 of 4
(3,158 Views)

Hi

       Thanks for the reply. ProcessDrawEvents() is changing the status immediately in GUI.

 

Regards

NB

0 Kudos
Message 3 of 4
(3,150 Views)

Also - just FYI - this is a known issue that has been resolved in CVI 2010.  Calling SetCtrlVal should immediately update and redraw the state of the LED.

 

NickB

National Instruments

0 Kudos
Message 4 of 4
(3,141 Views)