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
0 answers

Retaining Audio in Audio Files in Matlab

I’m trying to read a collection of audio files - recordings of people talking - into MATLAB. The files are in WebM format. When I try to read these files into MATLAB using the audioread() function, the resulting time series is missing pauses in…
Jessica
  • 1
  • 1
0
votes
1 answer

Psychopy on Pycharm sound.Sound.play() Error

I am creating a fMRI Experiment with the Psychopy Libary in Phycharm and need to implement Sound from .wav files and play them. This is my Code: import numpy as np from scipy.io.wavfile import read, write from psychopy import…
Fabian
  • 1
  • 1
0
votes
0 answers

KbQueueXXX functions: which to use and where do they go in relation to the trials' loop?

I am trying to collect the participants' responses (i.e., the first key they press on the keyboard) and their reaction time (i.e., the time elapsed since the presentation of a picture and the response). I am using the KbQueueXXX functions in…
PHJT003
  • 1
  • 1
0
votes
0 answers

Is there a python code that accepts the result of psychometric survey and feeds it as variable into customer risk analysis model(e.g for bank loan)?

I have a python code for mbti and another code for customer risk analysis regarding bank loan. I am looking for a way to feed the mbti result into my customer risk analysis code. How can i build a python code that runs a psychometric test and then…
0
votes
0 answers

Psychtoolbox flip time issue

I am running a psychophysics task on psychtoolbox that need to show each image for 16, 30, 60, and 120 milliseconds. Although my system monitor refresh rate is 16.66 ms (60 Hz) but the lowest time I get is almost 33 ms (I check this time by…
0
votes
0 answers

PsychToolbox keeps crashing a few trials into experiment. Error on line 117 with using screen

This is an experiment with 32 trials. A circle and a smiley face appear on the screen. If the participants clicks the smiley face, a video plays. If they click the circle, it skips to the next trial. I am getting an error on line 117 [moviePtr…
0
votes
0 answers

How to display a number loop from one screen to another? (psychtoolbox, matlab)

Hi I want to display on the screen using psychtoolbox matlab a number sequence (as a loop) changing from one screen to another screen as a DrawFormattedText. Is it possible? This is part of the code I try n_trials = 60; n=n_trials:-1:1; function…
0
votes
0 answers

I'm trying to download Psychtoolbox for Matlab but I keep getting the below error

I'm trying to download Psychtoolbox however I keep getting this error Error in DownloadPsychtoolbox (line 735) svndownload(targetRevision, dflavor, p, downloadmethod); I followed all the instructions given on the website, downloaded slik subversion…
0
votes
1 answer

How to take response from mouse in psychtoolbox of MATLAB

Below is my code. I have designed a experiment in MATLAB using psychtoolbox where I am presenting ovals for random duration (50ms and 350 ms). After the ovals are being presented, there is question asked to the participant - Whether the presented…
0
votes
1 answer

PsychToolBox GetImage doesn't save using given rect dimensions

I'm trying to save a cropped portion of the screen from my PTB experiment, but the Screen('GetImage',...) function is not working properly. Here is my code: screenNumber = 0; % Open screen with grey background [w, rect] =…
HereItIs
  • 145
  • 1
  • 4
  • 15
0
votes
1 answer

PTB-WARNING: During PsychHID invocation: Some other running application is preventing me from accessing the keyboard/keypad/mouse/

I'm using the Psychopy module in Python. My code calls waitKeys(...) to get keypresses and reaction times. 90% of the time it works perfectly, but occasionally when I launch it I get this (exactly this, not an infinite repetition): PTB-WARNING:…
0
votes
1 answer

divide a screen into several screens in psychtoolbox matlab

I want to divide my screen into several screens and use them separately: the screen in center for playing movie and the other screens for running tasks. How can I do this in psychtoolbox 3.0 on windows 11?
yasaman.h
  • 81
  • 8
0
votes
1 answer

Waiting for specific time for clicking right or left button on mouse, then continue

I have a problem with this following issue: I generated some sounds in left or right ear randomly and participants should push the left or right button on mouse (it means if a sound has been presented in the left ear, left button should been pushed…
0
votes
1 answer

Fail to use Screen('Preference') in PsychToolbox for MATLAB

In PsychToolbox for MATLAB, I try to put Screen('Preference', 'SyncTestSettings', maxStddev = 0.001, minSamples = 50, maxDeviation = 0.1, maxDuration = 5); in the MATLAB command window, but it keeps to tell me: Error in function Preference: Extra…
user257122
  • 31
  • 4
0
votes
0 answers

OpenGL: Translating textures along the z-coordinate is not producing any effect

I have drawn a 10x10 grid of noise textures. I would like to be able to control the depth of each texture. As a test I tried translating half of the textured objects with the z coordinate at -.5 but it seems to be having no effect. What am I…
Ben Jenney
  • 75
  • 6