claffey_matlab uses Matlab on Mac OS-X (Intel) and the Psychtoolbox 3:
There is a forum for Psychtoolbox here
The snd command seems to be inaccurate by about 20ms
See here for a solution
http://psychtoolbox.org/wikka.php?wakka=PsychPortAudio
You may need to download an update of PTB3 to get this
http://psychtoolbox.org/wikka.php?wakka=PsychtoolboxDownload
Then run: "PsychPortAudioTimingTest"
also run>InitializePsychSound
You made need to copy of this file that can be found in /Applications/Psychtoolbox/PsychSound/libportaudio.0.0.19.dylib
You need to copy that file into one of the following directories, then retry:
If you have administrator permissions, copy it to (at your option): /usr/local/lib
or /usr/lib -- you may need to create that directories first.
If you are a normal user, you can also create a subdirectory lib/ in your home folder
then copy the file there. E.g., your user name is lisa, then copy the file into
/Users/lisa/lib/
The latest beta of the psychophysics toolbox now includes KbQueueCheck and related functions that allow brief trigger pulses from the Current Designs fORP trigger box to be detected. This should allow you to continue to use these functions while also taking advantage of the other latest enhancements without the need to manually replace the distribution code with manually compiled versions:
http://tech.groups.yahoo.com/group/psychtoolbox/message/7365
Solution from Ian Greenhouse:
I had trouble figuring out how to play MPEG1 files in PTB,
but discovered a solution which required the demuxing (demultiplexing) of video files. The best option is to start with
files that are not muxed so you do not run into the same problem. Here
is the thread from the PTB forum:
http://tech.groups.yahoo.com/group/psychtoolbox/message/8415
Mac
If the experiment seems to freeze, use the following sequence to break out:
Control-c (this ends the ListenChar(2) function, which intercepts all keyboard input)
Apple-period (this interrupts the current matlab scripts)
Apple-zero (this moves the focus to the command window where you type commands)
type "cls"-Enter (this clears the PsychToolbox screen)
If
this does not work, try repeating the sequence several times. Also,
"cls" is a shortcut for "clear Screen". (This shortcut is included with claffey_matlab, but for computers without the shortcut you will need to type
the whole "clear Screen" command).
PC
If the experiment seems to freeze, use the following sequence to break out:
Ctrl-Alt-Delete (this brings up the task manager, and hopefully Window's bar at the screen bottom)
Click on the Matlab application in the Window's bar at the screen bottom
Control-c (this ends the ListenChar(2) function, which intercepts all keyboard input)
Control-break (this interrupts the current matlab scripts)
Control-zero (this moves the focus to the command window where you type commands)
type "cls-Enter" (this clears the PsychToolbox screen)
If
this does not work, try repeating the sequence several times. Also,
"cls" is a shortcut for "clear Screen". (This shortcut is included with
claffey_matlab, but for computers without the shortcut you will need to
type
the whole "clear Screen" command).
Copyright 2013 Mike Claffey