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

How to use HarpSyncInputDevice? #15

Open
ablot opened this issue Oct 26, 2023 · 3 comments
Open

How to use HarpSyncInputDevice? #15

ablot opened this issue Oct 26, 2023 · 3 comments

Comments

@ablot
Copy link

ablot commented Oct 26, 2023

I'm trying to see what is currently possible in term of harp-onix synchronisation. I got some of the hardware part sorted I think (here https://github.com/orgs/harp-tech/discussions/19) but I'm not sure about what is implemented already on the Bonsai.ONIX.

Is the HarpSyncInputDevice already working? And what does it do? :)

@aacuevas
Copy link
Collaborator

ONIX is not a harp-compliant device, as it does not alter its timestamps in sync with a HARP clock generator. ONIX does create its own high-resolution timestamps that are used to synchronize acquisition from all devices connected to it.

The HARP input device is a way to input HARP timestamps and synchronize them with the high resolution ONIX frame clock. Basically, every time a HARP clock timestamp generated by a clock generator is received (once every second) it generates a frame which includes both the HARP timestamp and the ONIX timestamp of the precise moment of reception. This way, a relationship between HARP and ONIX timestamps can be created to align events.

@ablot
Copy link
Author

ablot commented Oct 26, 2023

I must have connected something wrongly as I don't see any output of HarpSyncInputDevice.

I have a Harp clock sync device that I use to generate timestamp. One of the output of this device is connected to the clkin of the harp timestamp bus to SMA board. The board is connected to a random USB port for power (different computer).
Finally the SMA connector of this board is connected to I0 input of the Onix PCIe card. Is that correct?
Do I need anything else to get the HarpSyncInputDevice emitting outputs?

@aacuevas
Copy link
Collaborator

Ah, sorry for the confusion. The HARP device reads from the I1 port on the host.

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