10-05-2017 04:23 AM
Hi friends, i am trying to implement "Morse Telegraph Machine" by using event structure. But i am facing a problem with assigning time interval between the event firing. when i type two characters with 50 m. Seconds interval the two characters should form into a word, and with 200 m.seconds interval the two characters should form as two separate words. but i couldnt find a way to assign the time intervals between the events. if anyone can knows how please help me
10-05-2017 05:28 AM
Not sure what "events" are in your context. Are you using an event structure? Feel free to post what you have.
If you are using an event structure, you can specify the time out event. An event case can put the new time out time, put it in a shift register, and the event structure can use that for the new time out time.
10-05-2017 09:27 AM
it is better to use the queue
10-05-2017 02:59 PM
use the 'time' in whatever event case that you use to handle the key press to compare its current value and previous value.
-Joe