Page 1 of 1

SetMomentaryBlink method with two colored LED

Posted: Sun Jul 07, 2024 7:38 am
by seal58
SetMomentaryBlink() is a very convenient method to visualize a trigger pulse with a LED. But used with a "Blue And Red" LED, only blue LED color is available. I know, there are other ways to solve the problem, but I'd like to know, if anybody knows a simple solution.

Re: SetMomentaryBlink method with two colored LED

Posted: Sun Jul 07, 2024 9:46 am
by Waverley Instruments
FWIW, I tend to do all that stuff by setting boolean flags for each trigger in ProcessSample() then in the GUI update timer notification, picking those up, set the LED value as needed, then reset the flag(s).

So your "momentary blink" is the length of the update timer frequency - 50ms if memory serves.

-Rob

Re: SetMomentaryBlink method with two colored LED

Posted: Mon Jul 08, 2024 7:39 am
by seal58
Well, I did a similiar thing with a named timer.