# Import library
import syncmaster
# Create device object
= syncmaster.SyncMaster()
device
# Send test signal
device.testSignal()
Setup
In order to synchronise recorded signals and behavioural tasks, the device needs to be connected to the computer running the behavioural task and to one of the input channels of the system recording the signals of interest.
Connecting to computer
The device should be connected to the computer using a standard USB cable.
The host computer operating system will enumerate the device as a COM port. This can be ignored; the device drivers will use this port to communicate with the device to send signals.
Connecting to recording system
The device should be connected to an input channel on the recording system.
The device provides a standard BNC output. This can be connected to the input of recording device.
Note that the input ports of the recording device must be able to tolerate a 5V input as this is the voltage of the signal pulses used.
Verifying connection
Once connected, a test signal can be sent to verify that the systems are communicating correctly.
By sending a predictable signal through the device, we can verify that the correct signals are being generated and that the recording system is receiving these correctly.
A simple routine to implement this included in the device drivers.
SyncMaster.testSignal
SyncMaster.testSignal ()
Sends test pulses over output port once per second for five seconds
This can be used in a simple script to set up the device and verify that all systems are communicating effectively in order to allow synchronisation.
This will generate a trigger on the output port once every second for five seconds. If this is visible on the recording system, the system is connected and functioning correctly.