LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lighting up LED signal on breadboard using eye blink

Hi there, 

 

My project aims to detect an eye blink signal and light up LED on a breadboard using the voltage detected during eye blinking. The voltage I detected during eye blinking is 3.3V. How can I write the latter part of the LabVIEW code to detect this voltage and light up the led which corresponds to the eye blinking activity? 

 

Thank you for your help!

0 Kudos
Message 1 of 4
(953 Views)

Get a double from that waveform... Waveforms usually don't make things (that aren't waveform related) easier.

 

You shouldn't compare a double for equality. 3.3V won't be exactly 3.3V. So, compare x> 3.2 or 3.2 > X > 3.4 (In Range). This kind of comparison will return a Boolean.

0 Kudos
Message 2 of 4
(947 Views)

Thank you. Then what should I output as or put in the case structure to light up the led?

0 Kudos
Message 3 of 4
(942 Views)

@yyt420420 wrote:

Thank you. Then what should I output as or put in the case structure to light up the led?


That depends on the behavior you want.

 

I assumed you wanted to light an actual LED (e.g. hardware)...

 

If it's just an indicator on the front panel, simply wire it directly to the Boolean wire. The Boolean value is the LED indicator value:

wiebeCARYA_0-1663762199943.png

 

If you want it to stay true, you can use a feedback node or shift register. But then you'd also need a reset strategy. For that, we'd need more details.

0 Kudos
Message 4 of 4
(931 Views)