Hi Thomas,
Welcome to the forums!
Basically you can do the following:
- In triggered INPUT mode, trigger frame capture with external TTL
- In free INPUT mode, read the state of the pin synchronized with frame acquisition
- In OUTPUT mode, strobe a signal relative to shutter opening time (useful for syncing video acquisition to ephys)
- In OUTPUT mode, send a PWM pulse train through the pin.
Unfortunately, Bonsai does not yet support the last bullet point. A sink would have to be implemented to allow you to set output pins in the camera. I will consider adding this feature to future versions.
Probably we should also write a more detailed tutorial/example of how to do this.
Hopefully it helps but let me know if you have any problems down the line.
Cheers,
Gonçalo