LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure: start and stop event structure using timing

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(1,237 Views)
Solution
Accepted by topic author Liddy

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.)

0 Kudos
Message 2 of 5
(1,210 Views)

Hello,

I'm having some problems implementing this. Could you give me a few more clues? Thank you.

0 Kudos
Message 3 of 5
(1,191 Views)

I was able to implement your suggestions. Thank you.

0 Kudos
Message 4 of 5
(1,183 Views)

Glad to hear. Sorry, I was not near a computer for a while.

0 Kudos
Message 5 of 5
(1,169 Views)