LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reaction time meter using two diodes

Hi everyone,

currently I'm trying to create reaction time meter. I created desired interface but I can't move any further. I'm not sure which elements should I use and how. I tried using flat sequence structures but I don't think that's the answear. I want this program to wait for user to click START, then wait 1-4 seconds to turn on one or two diodes. After users decision it should show him his time and whether he choose good answer or not. Could someone give me some advice on how should I build this program?

0 Kudos
Message 1 of 4
(3,047 Views)

Probably just want an event structure.

Start button event waits random time, then chooses random diode and sets start time

Decision button(s) event calculates time difference, and compares selection

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

As I mentioned above I tried flat sequences with no succes... 

For some reason program turns on two diodes every time. Not sure what I'm doing wrong. I also heard of something called "state machine". What's that? Could it be usefull? 

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

Your diode selection is flawed.  You were probably looking for a case structure for each of those options, not a sequence structure.  Might be easier to do something like this:

select.png

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