09-21-2022 06:44 AM
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!
09-21-2022 06:51 AM
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.
09-21-2022 06:55 AM
Thank you. Then what should I output as or put in the case structure to light up the led?
09-21-2022 07:10 AM
@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:
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.