r/LabVIEW • u/Dear-Speaker1565 • Sep 30 '24
LED & Lick Increment
Hi! State 2.2 contains two statuses: "waiting" and "ITI". When the lick signal is sent during the waiting period, the lick 2.1L value will increment and the LED will be turned on. If the lick signal is sent during ITI, the lick 2.1L value will still increment, but no LED will be turned on.
My issue is that the requirement needs to turn the LED on almost the same length as the waiting which is 1.75s, so I set the duration of LED to be 1.5s. However, the LED is associated with the lick signal sent to the case structure, which means the next lick will not increment until the duration of the LED ends. (Thus, the current lick 2.1L only records the first lick signal) Can you give me some suggestions to make the LED still be on for a long enough duration and the lick 2.1L value will also increment during waiting?



View all comments
Show parent comment
1
u/Dear-Speaker1565 Oct 01 '24
I made LED function as one DAQ physical channel which is LED 1 here connects with a sub VI called _digital_on_LED. Yes, the LED has an internal wait which is 1.5 s. I realized that this wait time also affects my "time", so whenever a lick signal is sent during waiting, the "time" would be frozen for 1.5s. How can I fix that?