rzellertownson / neurorighter

Closed Loop, Open Source Electrophysiology
6 stars 5 forks source link

Sampling frequency not reported correctly if not an integer multiple of a 100 kHz timebase clock. #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In NR, set the sampling frequency such that the sampling interval is not an 
integer multiple of clock pulses (1/100 kHz = 10 us). For instance, set fs = 15 
kHz (sampling period of 66.666 us).
2. Use loadraw.c MATLAB function to load raw data from times t1 to t2. For 
example
>> loadraw(filename, [t1 t2].

What is the expected output? What do you see instead?
Expect to read data that starts exactly at time t1 until exactly time t2. Also, 
expect to see sampling frequency reported to greater precision.  Currently, it 
is stored in the .raw and .salpa file header as an int, but should made made 
into a double. 

What version of the product are you using? On what operating system?
Win XP (SP3), matlab 2011b.

Please provide any additional information below.

Original issue reported on code.google.com by jonathan...@gmail.com on 22 Oct 2012 at 5:58

GoogleCodeExporter commented 9 years ago
This issue is resolved in r537 and above. Matlab scripts for loading data were 
also updated to account for this change. All sampling rates are reported as 
doubles now.

Original comment by jonathan...@gmail.com on 8 Nov 2012 at 3:50

GoogleCodeExporter commented 9 years ago

Original comment by jonathan...@gmail.com on 8 Nov 2012 at 3:50