06-06-2017 01:05 PM
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?
06-06-2017 01:50 PM
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
06-06-2017 02:04 PM
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?
06-06-2017 02:34 PM
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: