Skip to content

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

@matiasandina

Description

@matiasandina

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions