Questions tagged [psychtoolbox]

a MATLAB and GNU/Octave toolbox for the creation of visual (OpenGL based) and auditory displays. It is particularly geared toward vision research applications.

Psychtoolbox is a MATLAB and GNU/Octave toolbox for the creation of visual (OpenGL based) and auditory displays. It is particularly geared toward vision research applications. Given its focus on vision research applications, the toolbox places great emphasis on enabling frame accurate display of visual stimuli, with synced audio presentation, TLL and other triggers and response collection. Through and interface to GStreamer, PsychToolBox also allows the presentation and recording of video files.

More information can be found on the PsychToolBox website.

177 questions
1
vote
1 answer

Matlab: Criteria for displaying screens to subjects

I am delivering a psychology experiment in Matlab, where screens with questions will be presented to subject. The screen will also collect and display the subjects' responses. For example: Screen displays '2+3' and also displays what participant…
CodeGuyJr
  • 79
  • 1
  • 2
  • 9
1
vote
1 answer

Psychtoolbox scale slider

I'm trying to make a slider for a simple scale where the user can see mouse movement ONLY in the horizontal axis (fixed y location on the horizontal scale). In more detail: When the scale appears, I want the cursor to appear as a short vertical line…
maia-sh
  • 537
  • 4
  • 14
1
vote
0 answers

How can I unify the hue of multiple images

I was wondering if there is a way to choose a fixed hue, so I could unify the the color of multiple images at once (using a Matlab code, not manually in Photoshop). I am using a code which rotates the color while presenting the image on screen…
natalie
  • 11
  • 2
1
vote
2 answers

Where can i find flickering functions for stimuli on psychopy? and how do i use it?

currently i am building a stimuli in Psychopy for my thesis in my Uni, the 4 stimuli needs to flicker at 8.57 Hz,10 Hz ,12Hz and 15 Hz using the monitor refresh rate, my question is, can psychopy do that? and also what functions do i use for…
aldo027
  • 13
  • 4
1
vote
1 answer

Accelerating Screen('Flip',win) command PsychToolbox

What is the optimal way to accelerate the Screen('Flip',win) command? For some reason, this command is taking 16ms instead of being almost instantaneous for an color image that is 1028x760. Thoughts or suggestions? Would a better graphics card be a…
Arturo
  • 3,679
  • 6
  • 34
  • 43
1
vote
1 answer

Accessing USB Port in Matlab/Psychtoolbox

I'm trying to access a buttonbox to record subject responses in matlab, but I can't access the usb port or the device attached. I've tried a lot of variations of the following code. what I currently have is: port = serial ('COM2', 'BaudRate',…
S.G.
  • 13
  • 2
1
vote
1 answer

Flicker frequencies in PTB

I'm trying to present a 4Hz flickering stimuli in PsychToolbox for 5 seconds followed by a 500Hz tone. Does anyone have an idea of how to do this? I've been using the vbl or screen refresh rate to calculate the flicker frequency but I'm not sure if…
Rannie Xu
  • 21
  • 6
1
vote
1 answer

Draw shaps of squares using PTB

I want to draw 4 squares, side by side, using PTB for my experiment, but the code does not work.. Here is my code, square_size = [0 0 50 50]; squareXpos = [screenXpixels * 0.125 screenXpixels * 0.25 screenXpixels * 0.5 …
Monica
  • 11
  • 2
1
vote
1 answer

Psychtoolbox - Filloval

I am new to Matlab and Psychtoolbox. I need to change color saturation. When creating a circle Screen('FillOval',window, is there a way of getting a handler to the Oval object and is it rendered as image? Thanks in advance
1
vote
2 answers

Unable to locate package matlab-psychtoolbox-3

I am trying to install the matlab-psychtoolbox-3 and I recieve this error: $ sudo apt-get install matlab-psychtoolbox-3 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package…
f .sh
  • 11
  • 2
1
vote
1 answer

how to fix Screen('OpenMovie'.. leading to Matlab crash

Setup: Matlab Student 2014, Psychtoolbox 3.0.12, GStreamer 1.4.3, ATI Radeon 69xx, all on Windows 7, all 64bit. Screen works with different arguments, only at Screen('OpenMovie' the whole Program (Matlab) crashes - sometimes with Error (unable to…
1
vote
1 answer

Psychophysics Toolbox Matlab on Ubuntu Installation

I am trying to run code in Matlab that uses the Psychtoolbox and OpenGL. The commands that throw the error described below are: PsychJavaTrouble AssertOpenGL Here are my specs: OS: Ubuntu 14.04 LTS, 64bit Processor: Intel…
lrthistlethwaite
  • 494
  • 2
  • 6
  • 23
1
vote
1 answer

How to terminate a task based on time, regardless of trial number (Psychtoolbox)

I need to make a timer that starts counting at the beginning of a multi-phase delay task, and that ends the delay task after a certain period of time has passed, moving on to the next part of the experiment. For now, I'd like to end the task after 2…
1
vote
0 answers

MATLAB: Dynamic plot of a co-ordinates matrix as it is updated

I am writing a MATLAB code to plot an x-y coordinate matrix. The matrix is constantly updated(as fast as micro or milliseconds) by obtaining raw data from an external device. I need to update the plot as and when the matrix changes. Essentially my…
0
votes
1 answer

How do I measure intensity of sound in real time?

I need to program a function that records an audio response, but when the voice of the person speaking reaches a certain intensity I need to know it on-line. Currently I am using this for recording: PsychPortAudio('GetAudioData') I can't analyze…
user552231
  • 1,095
  • 3
  • 21
  • 40
1 2
3
11 12