For new projects, we recommend using this simple matlab function to synchronise with the scanner pulses. For existing projects we continue to support ScannerSynchClass, which is described further below.


ScannerSynch provides an interface for National Instruments PCI 6503 card used to capture all pulses (scanner synch pulse and button pulses alike) when using MATLAB.

For more information, type in MATLAB

help ScannerSynchClass

N.B.: National Instruments PCI 6503 card does not monitor pulses in the background, so you have to make sure that you wait for any pulse before it comes!

Any problems, report them to Johan Carlin.

<<TableOfContents: execution failed [list index out of range] (see also the log)>>

Obtain ScannerSynch

ScannerSynch is available on all relevant PCs (StimPCs, "mimic" PC). You can check out a local version for testing from our github repo.

Using ScannerSynch



ScannerSynchClass has a destructor, which is automatically triggered if the object is deleted (e.g. clear, returning function). If you use a script, however, it does not perform any auto-clear, so you have to destroy the object manually:

Capture scanner synch pulse

Capture button presses