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

Matlab Psychtoolbox fprintf error with multiple keypresses within a trial

I have an experiment that collects keypresses ('x' or 'n') and reaction time in response to a stimulus display. If the participant presses either button once per trial the experiment runs fine. However, if they press the keyboard repeatedly or hold…
C_River
  • 11
  • 3
0
votes
1 answer

Can a Matlab GUI (created in Guide) appear in or in front of a Psychtoolbox window?

I'm using psychtoolbox 3 with Matlab 2019b on a Mac running OSX 10.12. I'm presenting static image stimuli using psychtoolbox (PTB) and would like to have a floating audio player gui object that I created using guide to appear on the screen as…
0
votes
0 answers

Dual display Psychtoolbox Matlab

I'm starting with Matlab, so doing the tuto from peterscarfe.com. I have 2 screens on my computer, but when I run the first code of the tuto, it seems that it recognizes those 2 screens as one larger : % Clear the workspace and the screen sca; close…
FH31
  • 1
  • 2
0
votes
1 answer

Problem to download/install Psychtoolbox on Matlab (Ubuntu)

I can't install properly Psychtoolbox on Matlab. When I use the DownloadPsychtoolbox, I get this message error Error: File: DownloadPsychtoolbox2.m Line: 1 Column: 32 Invalid expression. Check for missing multiplication operator, missing or…
FH31
  • 1
  • 2
0
votes
1 answer

How can I align multiple characters in Psychtoolbox?

I am super new to MatLab and I'm currently sitting in front of my computer and don't know how to solve the problem. I do plan to show my participants a string where one letter (position of the letter varies) has to be at a certain position on the…
0
votes
2 answers

How to plot a "moving" graph for real time values along the x-axis (using psychtoolbox)?

I am writing a code for a real time experiment using psychtoolbox to present the stimulus. In my experiment, I need to show the subject a graph that indicates his performance. I have plotted the graph using this simple code: % Draw the…
Abdul
  • 3
  • 2
0
votes
0 answers

open window error - psychtoolbox in MATLAB

I am trying to run Psychtoolbox in MatLab, but every time I encounter the following message: Error in SSVGexp (line 59) [wndw, wRect]=Screen('Openwindow', 1, 0,[],32,2); I have another monitor attached to the laptop and want the program to run…
Farnia
  • 1
0
votes
2 answers

Opening a serial port in matlab no java mode

I'm trying to open an utilise a serial port connected to a BBTK USB TTL Module. The code I'm using is as follows: function [s]=TTLInit if ~isempty(instrfind) %Close any open ports fclose(instrfind); delete(instrfind); end …
Yoddlenod
  • 41
  • 8
0
votes
1 answer

Psychtoolbox: Collecting keyboard inputs for pavlovian and instrumental scripts

I'm running into trouble collecting keyboard inputs for two psychological tasks, a pavlovian and instrumental learning script. I'll show the instrumental script in hopes that solving the problem in the instrumental script will transfer to the…
Lauren
  • 1
  • 1
0
votes
1 answer

PsychToolBox: Error passing input from GUI to simple Pavlovian script

I have a GUI created from GUIDE (PITGUI.m) that is supposed to pass some simple input from the GUI to a Pavlovian script (PITtask.m) as a structure. When running it I'm receiving the following error: Error: File: PITtask.m Line: 61 Column:…
Lauren
  • 1
  • 1
0
votes
1 answer

Using GetMouse/GetClick to get location of a click in psychtoolbox

I'm trying to get the x,y coordinates of a click using Psychtoolbox on Matlab. My program needs to do the following things: 1. Place a dot where the user clicks. 2. Store the x,y location of the this click and all subsequent clicks in a single…
Yoddlenod
  • 41
  • 8
0
votes
0 answers

How to make for loops run faster - Psychtoolbox in matlab

I created a MATLAB code using Psychtoolbox to make an experiment. Everything works as I intended but it seems the initial loading of the experiment takes too long. The task is a simple yes/no response task whether the target word('probe') appeared…
KH Cheon
  • 13
  • 5
0
votes
1 answer

How to present stimulus for limited amount of time and still record response using Psychtoolbox

For my experiment I want to present a stimulus and some instructions to the participant. Then 2 seconds later I want the stimulus to disappear but the instructions to remain until the participant responds. Participants should be able to respond…
dupuis4d
  • 7
  • 2
0
votes
1 answer

Troubles presenting new and random images using Psychtoolbox

I'm fairly new at programming and am attempting to program my first experiment using Psychtoolbox. In this experiment a random number of faces will be shown (1-6 faces), and each face will be different from each other. The faces will disappear after…
dupuis4d
  • 7
  • 2
0
votes
0 answers

Psychtoolbox issue after recent Mac update

I recently got an update (macOS High Sierra 10.13.5 Update), and it seems to have messed with the display a bit. I use Octave (v4.2.2) to run experiments off of my laptop (MacBook Pro 13-inch, 2.3 GHz Intel Core i5), which requires me to put images…
Mrinmayi
  • 37
  • 1
  • 5