To give an idea of the scenario I am implementing, I receive data:
How my code works is, for the first trial( 12 to 26.5 seconds), On finding two consecutive 1's ( in 3rd column) , I would activate the device and send instructions at specific times in 10 seconds. At the same time I output a buffer with the activation state. Similarly for 2nd trial(44 to 58.5).12 0 1
12.5 1 1
13 2 1
13.5 3 1
14 4 0
14.5 5 1
15 6 1
15.5 7 1
16 8 1
16.5 9 0
17 10 1
17.5 11 0
18 12 1
18.5 13 1
19 14 1
19.5 15 1
20 16 0
20.5 17 0
21 18 0
21.5 19 1
22 20 1
22.5 21 1
23 22 1
23.5 23 1
24 24 1
24.5 25 1
25 26 1
25.5 27 1
26 28 1
26.5 29 1
44 30 0
44.5 31 1
45 32 1
45.5 33 1
46 34 0
46.5 35 0
47 36 1
47.5 37 1
48 38 1
48.5 39 0
49 40 1
49.5 41 1
50 42 1
50.5 43 1
51 44 0
51.5 45 1
52 46 0
52.5 47 1
53 48 0
53.5 49 1
54 50 1
54.5 51 1
55 52 1
55.5 53 0
56 54 0
56.5 55 0
57 56 1
57.5 57 1
58 58 0
58.5 59 0
Is there a workaround that I get sufficient time for executing the byte sequences ?