1422
Comment:
|
1763
|
Deletions are marked like this. | Additions are marked like this. |
Line 25: | Line 25: |
* Default. Use only if device (scanner, pulse emulator) is connected (only in StimPCs and mimic PC). {{{#!highlight matlab numbers=off |
* Default. Use only if device (scanner, pulse emulator) is connected (only in StimPCs and mimic PC)! . {{{#!highlight matlab numbers=off |
Line 29: | Line 29: |
{{{#!highlight matlab numbers=off | * Emulations: . {{{#!highlight matlab numbers=off |
Line 32: | Line 33: |
{{{#!highlight matlab numbers=off | . {{{#!highlight matlab numbers=off |
Line 35: | Line 36: |
{{{#!highlight matlab numbers=off | . {{{#!highlight matlab numbers=off |
Line 38: | Line 39: |
=== Close === !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: . {{{#!highlight matlab numbers=off SSO.delete; }}} |
ScannerSynch
ScannerSynch provides an interface for National Instruments PCI 6503 card used to capture all pulses (scanner synch pulse and button pulses alike).
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 Tibor Auer.
Obtain ScannerSynch
ScannerSynch is available on all relevant PCs (StimPCs, "mimic" PC)
From your desktop PC (Windows), you can also have a copy from \\cbsu\data\Group\Imaging-Local\cbu\matlab
You can also download it from here (right-click and "Save As...")
Using ScannerSynch
Initialise
- Default. Use only if device (scanner, pulse emulator) is connected (only in StimPCs and mimic PC)!
SSO = ScannerSynchClass;
- Emulations:
SSO = ScannerSynchClass(1); % emulate scanner synch pulse
SSO = ScannerSynchClass(0,1); % emulate button box
SSO = ScannerSynchClass(1,1); % emulate scanner synch pulse and button box
Close
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:
SSO.delete;