sample at 1 kHz by writing file in binary
Merge branch 'master' of https://github.com/wadelab/flyCode