ButtonBox: Difference between revisions
Jump to navigation
Jump to search
Wiki-admin (talk | contribs) No edit summary |
|||
| Line 359: | Line 359: | ||
% at the start of your script, reset marker | % at the start of your script, reset marker | ||
samplerate = 500; | samplerate = 500; | ||
pulseLen = 2000/samplerate; | pulseLen = 2000/samplerate; % get pulse time length for a 2 samples delay | ||
bb.sendTrigger(0); | bb.sendTrigger(0); | ||
% send a marker | % send a marker | ||
| Line 372: | Line 372: | ||
<syntaxhighlight lang="matlab" line style="overflow:auto;"> | <syntaxhighlight lang="matlab" line style="overflow:auto;"> | ||
samplerate = 500; | samplerate = 500; | ||
pulseLen = 2000/samplerate; | pulseLen = 2000/samplerate; % get pulse time length for a 2 samples delay | ||
% select a function | % select a function | ||
bb.sendTrigger(uint8('X')); % select pulse time | bb.sendTrigger(uint8('X')); % select pulse time | ||