LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous flickering of lights

Hi all. I want to make a program which has a continuous sine wave as input, for which, I want to design 3 Boolean lights to show when the amplitude is greater than 0,less than 0 and greater than threshold,which could be set. I want them to indicate it continuously. Problem is it doesn't glow continuously(dosen't flicker when amplitude changes). Only when I stop the while loop,the LED depending on the last value glows!! Or when I use the highlight execution it shows...

 

Thank you in advance..

0 Kudos
Message 1 of 4
(2,523 Views)

We need to see some code. Most like likely your loop spins millions if times per second, blurring all LEDs.

0 Kudos
Message 2 of 4
(2,513 Views)

What is the frequency of the sine wave? LEDs will not appear illuminated if they are being turned off and on too rapidly. My guess is that you are not allowing enough time to energize the direct band gap through the p-n junction of the transtisitor. Try setting your frequency to less than 1 Hz.

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

thank you allenbach and tmoutney sir... the frequency was very high. i reduced it to below 10 and the sampling per time too. Now it works!

 

But if i remove the sine wave generator and instead interface with a real time system(say ECG) where frequency would be more, then can you recomend something to indicate the changes?

 

i have attached the photo of my simple program..

0 Kudos
Message 4 of 4
(2,482 Views)