Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue recording at 2kHz on SD card (Cyton v3.0.0, Python) #74

Open
NeuralControl opened this issue Sep 4, 2017 · 3 comments
Open

Issue recording at 2kHz on SD card (Cyton v3.0.0, Python) #74

NeuralControl opened this issue Sep 4, 2017 · 3 comments

Comments

@NeuralControl
Copy link

Hello,
I am trying ask via python to record on sd card at 1kHz, using v3.0.0
I looked around and tried quite a bit but cant get it to work.
My code looks like below, does anyone knows what i'm doing wrong by chance?
i get createfdContiguous fail without softreset, and if i do a soft reset i get back to 250Hz,
Thanks

board.ser.write(b'~6');sleep(1);read() # ask 250Hz
board.ser.write(b'v');sleep(1);read() # soft reset
board.getSampleRate() # check 250.0
board.ser_write(b'a');sleep(1);read() # record ~14sec
sleep(20)
board.ser.write(b'~4');sleep(1);read() # ask 1kHz
board.ser.write(b'v');sleep(1);read() # soft reset
board.getSampleRate() # check 1kHz
board.ser_write(b'a');sleep(1);read() # record ~14sec
sleep(20)

@NeuralControl NeuralControl changed the title Issue recording at 2kHz on Cyton Issue recording at 2kHz on SD card (Cyton v3.0.0, Python) Sep 4, 2017
@andrewjaykeller
Copy link

i get createfdContiguous fail without softreset, and if i do a soft reset i get back to 250Hz,

Can you rephrase?

@andrewjaykeller
Copy link

I think you are writing too fast too it

@NeuralControl
Copy link
Author

Thanks AJ. I switched to wifi :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants