I would like my event structure to start counting the number of space bar presses from the first recorded space bar press for a duration of 10 seconds. I would also like to record when key strokes occur in seconds into an array. Can anyone help me figure out how to start and stop the event structure using these events?
Solved! Go to Solution.
The time output of the event data node is the same as "tick count". Place the first tick count into a shift register and for every new spacebar down event subtract the current tick from the first recorded. If the differences is less than 10000ms, count the press ysing +1, else not.
You can build an array of recorded times in another shift register.
Also fix the representation off your indicator. Should be blue.
(And no, you don't "start" or "stop" an event structure. Just stop incrementing under some conditions.)
I'm having some problems implementing this. Could you give me a few more clues? Thank you.