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
0
votes
1 answer

Unable to install package matlab-psychtoolbox-3

I follow the step in the following website to install psychtoolbox, however it keep showing unable to locate the package... I've already look this similar question I assume that the neurodebian nonfree ppa is installed since this situation occur…
0
votes
2 answers

Combining two visual experiments written in Psychtoolbox

I have two different experiments (one is a “change blindness task” and the other one is an “optokinetic stimulation of dots”) both written in psychtoolbox. I want to combine these two task while running (i.e., to superimpose change blindness task on…
0
votes
1 answer

How to fix while loop error when getting a mouse response in Psychtoolbox?

I want to get ratings from participants in Psychtoolbox in MATLAB by getting a mouse response; however when I do it, while loop does not allow me to get all responses and I can only get, say, 1 rating instead of 4 (or 4-5 ratings instead of 16). As…
0
votes
1 answer

Matlab Psychtoolbox PTB new textures not appearing on computer monitor

As shown by the attachment, i'm presenting multiple images on a computer monitor. I can physically view the very first one that is presented, but on the next trial, the texture's I've drawn are done correctly, but they do not appear on the display…
0
votes
0 answers

PTB-OpengGL stereo rendering and eye seperation value

I tried to draw a 3D dot cloud using OpenGL asymmetric frustum parallel axis projection. The general principle can be found on this website(http://paulbourke.net/stereographics/stereorender/#). But the problem now is that when I use real eye…
0
votes
1 answer

Structuring an experiment with psychtoolbox

I have a design for an experiment that I would like to code in psychtoolbox using MATLAB. I understand the basics of how to use this toolbox however it would be extremely helpful if someone has designed a similar experiment before and could provide…
0
votes
1 answer

Matlab: How to randomize trials without presenting the same trial consecutively

I'm a very beginner of Matlab and I'm struggling in randomizing trials in my task on Psychtoolbox, in Matlab. My trials consist in 5 verbal stimuli repeated 12 times (in total 60 trials). I have 2 practice trials and then the 60 testing trials. What…
chiaras15
  • 3
  • 2
0
votes
1 answer

Problem in showing sequence of static images for the desired amount of frames MATLAB

i have to show my participants a series of visual stimuli each lasting a certain amount of frames. each stimulus is coded as a number (reported in stimuli_matrix) and the amount of frames it should last is reported in stimframesVector. Rows of…
umberto
  • 1
  • 1
0
votes
2 answers

Why is KbCheck in Psychtoolbox not registering keyboard input?

I'm trying to run a programme coded in Psychtoolbox-3 that should register a keypress. But when I run it, even just this section from the command window, it doesn't respond to the E, P keys (or any) and I have to stop the operation using Ctrl-C. I…
0
votes
0 answers

To click the mouse several times

If 4 'Filloval' appear, you must select all 4 ovals. If the same oval is selected 4 times, only 1 oval is selected, so the code should not terminate. However, my current code terminates when selecting the same oval four times. We created a matrix,…
0
votes
1 answer

How to display stimuli depending on keyboard response

I am using MATLAB R2020a on Psychtoolbox on a Windows 10 system. I am trying to present a stimulus on the screen based on the keyboard response provided by the user. I am using if-else statements to code for this but only the fixation cross is…
hellothere
  • 35
  • 5
0
votes
1 answer

Only a portion of the code is executed and no error message is displayed

I am using MATLAB 2020 Psychtoolbox on Mac OS and everytime I run this code, they screen turns grey followed by an error sound, however, no error message is displayed in the command window. How do I make all the code execute? % Clear the…
hellothere
  • 35
  • 5
0
votes
1 answer

How do I use the screenRect function in MATLAB correctly?

I run the following code as I am trying to display numbers at randoma locations on the screen: % Screen parameters center = [screenRect(3)/2 screenRect(4)/2)]; [mainwin, screenRect] = Screen(0, 'OpenWindow'); % potential locations to place…
hellothere
  • 35
  • 5
0
votes
0 answers

About errors in screen functions of Psychtoolbox

I'm getting the following error message in my psychotoolbox, but I don't know the specific solution. Can someone please tell me how to solve this problem? I don't know any programming, so it would be helpful if you could give me some…
0
votes
0 answers

Duration of the contents in survey

I want to create a survey and add some images for target group. However this images should show only 2 seconds. Can anyone give me any advice for making this ? How can I do this ? Which program can I use or can I find any example PsychoPy code ?…