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

Extending example of sync using TTL input from I/O #7

Open
matiasandina opened this issue Sep 14, 2022 · 1 comment
Open

Extending example of sync using TTL input from I/O #7

matiasandina opened this issue Sep 14, 2022 · 1 comment

Comments

@matiasandina
Copy link

I'm following the sync example in the documentation for bonsai using the I/O board. I have a 1 Hz pulse connected to the first socket of the I/O board. As shown in the pic below, I save the timestamps to csv and the TtlState into binary.

image

I'm reading the data in python using np.fromfile("ttl_path", dtype=np.int16)
Below I show a particular moment where the pulse on the first input should be high.

array([1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0]

I am a bit puzzled because I was expecting 8 channels instead of 4 channels (I was expecting a 1 followed by 7 zeros) . Any idea about this? When I visualize the input from the board in bonsai I do see 8 traces.
Could you extend the example a bit further in the docs ?

@matiasandina matiasandina changed the title Extending TTL input from I/O example Extending example of sync using TTL input from I/O Sep 14, 2022
@ChucklesOnGitHub
Copy link
Collaborator

Hi Mati, I agree this tutorial could be expanded further. Can you send your data file to [email protected] so we can make sure everything is looking good in terms of the analog channels being recorded?

@jonnew jonnew assigned cjsha and unassigned cjsha Mar 21, 2023
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

3 participants