BCPy2000 timer

Forum for discussion on different brain signals
dhruv aggarwal
Posts: 4
Joined: 08 Jun 2011, 23:15

BCPy2000 timer

Post by dhruv aggarwal » 13 Jul 2011, 22:41

I also wanted to know if there is any variable defining a timer during the run in BCPy2000. I need to use a timer which starts from 0 at the beginning of the run and continues until the run is suspended.

Kindly help.

Posts: 1052
Joined: 12 Feb 2003, 11:06

Re: BCPy2000 timer

Post by mellinger » 02 Aug 2011, 10:36


the BCPy2000 Process hook is called once for each sample block acquired from the EEG system. To get a timer in units of sample blocks, define a variable and increase it by 1 from inside the Process hook.
To convert sample blocks into seconds, multiply by the SampleBlockSize parameter, and divide by the SamplingRate parameter.



Who is online

Users browsing this forum: No registered users and 1 guest