Page 1 of 1

BCPy2000 timer

Posted: 13 Jul 2011, 22:41
by dhruv aggarwal
hi
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.
Dhruv

Re: BCPy2000 timer

Posted: 02 Aug 2011, 10:36
by mellinger
Hi,

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.

HTH,
Juergen