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

Why, when displaying a greyscale .png file in Psychtoolbox (with an alpha channel), is the image displaying in bright red?

I am currently preparing some greyscale .png images that will be displayed in Psychtoolbox. These .png files all have transparent backgrounds, and so I've been adding in the alpha layer into the file matrix like so: % sets up for the…
treismanwolfe
  • 39
  • 1
  • 7
0
votes
1 answer

How do I make a PNG file display in Psychtoolbox with a transparent background?

I have two images I need to display concurrently on screen, using the Screen('DrawTexture') function. One image is a scene image, and second is an object, in which the background is transparent. I want to display the object on top of the scene…
treismanwolfe
  • 39
  • 1
  • 7
0
votes
3 answers

playing song on a specific earplug (channel)

I have a device that is like 3 headphones in one ( so 6 earplugs) . My goal is to play one diferent song on each earplug ( 6 songs). So I starded by playing one song on an earplug. For me one channel means one earplug (but maybe I am wrong) .I am…
0
votes
1 answer

play 6 channels audio Matlab

I want to play 6 sounds on the same time on 6 channels. (I have a logiLink and i plug 3 cables Front, Surround , Bass/Center ). I don't know how to do it. From what I looked on google I can do it with data acquisition toolbox ( but I dont have…
0
votes
1 answer

Checking if a number is divisible by 20 MATLAB

The code below will not work because the program won't know if the trial number we are on is divisible by 20. Basically, I want to check if the trial = 20, 40, 60, etc. and if so, have the subject take a break if they wish. numTrials = 345; for…
collegesista
  • 87
  • 3
  • 12
0
votes
1 answer

Using one cell array to create another

I am running an experiment where I have 5 different conditions and participants gives a response from 0-9 on each trial. As a result of running the experiment I get two cell arrays - one containing the conditions of each trial and one containing the…
Emily
  • 29
  • 1
  • 7
0
votes
1 answer

Using a loop to show pictures in a random order

I'm trying to use a loop to show flashing images on the left and right sides of the screen. It's working at the moment, but showing images in the order that they appear in my folder, which is not idea as I would love them to be randomly presented.…
Emily
  • 29
  • 1
  • 7
0
votes
1 answer

GetChar not waiting for response

I'm using psychtoolbox in MATLAB and I want to get a participant to rate the distortion of a string of images from 0-9. I've tried using GetChar, but when I run the script it doesn't wait for the user to give a response but just moves onto the next…
Emily
  • 29
  • 1
  • 7
0
votes
1 answer

Rendering videos and polling for Saccade Data in Real Time in PsychToolbox

I am using MATLAB's PsychToolbox to run an experiment where I have to gather saccade information in real time, while also rendering a video frame by frame. The problem that I have is that given the frame rate of the video and the display (~24fps),…
Arturo
  • 3,679
  • 6
  • 34
  • 43
0
votes
0 answers

function for keyboard response in psychtoolbox not working

I am writing a piece of experiment code and am stuck at this piece of code. The idea is to display two images with text below them. Participants will have to select between these options. I have assigned 'z' for keyboard and 'm' for joystick. My…
Y. Lin
  • 1
  • 2
0
votes
2 answers

Psychtoolbox change drawn square to diamond/rhombus

I'm new at psychtoolbox and trying to rotate/draw my framed square to a diamond/rhombus, but can't quite figure it out how it works. Here's my code: AssertOpenGL; screenNo = max(Screen('Screens')); screenRes = [0 0 640 480]; …
hanna
  • 3
  • 1
0
votes
1 answer

PsychToolbox SSVEP

I want to make an 'SSVEP' flickering lines on the monitor using PsychToolbox. By the way, when I made a 6Hz-flickering line, it sometimes disappeared: I guess there is some conflict between 6Hz-flickering stimulus presentation and the monitor…
0
votes
1 answer

Connecting PsychoPy to Biopac MP150

I want to record the pulse rate with EDA while presenting a music stimuli in psychopy. As the music starts the EDA should start and as the music end the EDA should end. I am using Biopac MP150 PPGED-R for EDA and Parallel Port for PsychoPy with…
0
votes
1 answer

Changing psychtoolbox screen

I am using Psychtoolbox to display on a screen as part of an interface. I create a blank screen with [win,Rect]=Screen('OpenWIndow',etc.etc...) in my main script. I would like to use a function call later on in the script to update the screen, but I…
0
votes
1 answer

Matlab2015a freezes when using Psychtoolbox 3.0.10 Screen('Openwindow') in dual display

I'm running a script on a PC (windows 7) with dual monitors, and every time when I open a new on-line window, Matlab freezes (not responding to mouse or keyboard inputs, only to calling windows task manager and switching tasks). For what I've…