05-01-2018 03:42 PM
Hello,
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?
Regards,
Daniel
Solved! Go to Solution.
05-01-2018 05:07 PM - edited 05-01-2018 06:02 PM
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.)
05-01-2018 08:13 PM
Hello,
I'm having some problems implementing this. Could you give me a few more clues? Thank you.
05-01-2018 08:53 PM
I was able to implement your suggestions. Thank you.
05-01-2018 11:46 PM
Glad to hear. Sorry, I was not near a computer for a while.