paulmthompson / Intan.jl

Julia API for Intan RHD2000
BSD 2-Clause "Simplified" License
10 stars 6 forks source link

Int32 vs Int64 for analog waveforms #11

Closed paulmthompson closed 8 years ago

paulmthompson commented 8 years ago

For SpikeSorting.jl and Intan.jl, I have used Int64s for all of the raw data that is streamed from the FPGA for consistency. The board only uses Int32s, so I wonder if making this change could lead to some performance benefits, particularly with writing the data.

allenyin commented 8 years ago

Each sample is only two bytes, signed or unsigned. Plotting or saving two bytes per sample should be sufficient (int16 or uint16), and saves space.

paulmthompson commented 8 years ago

Word size converted to Int16 with https://github.com/paulmthompson/Intan.jl/commit/621e3f9ce46e05423b2e979137b2af8e0557a2b3