Questions tagged [psychopy]

PsychoPy is an open-source python module written in python and c libraries for the generation of experiments for neuroscience and experimental psychology. PsychoPy includes Builder and Coder - two graphical interfaces to build experiments using the psychopy python module.

PsychoPy is an open-source Python module written in Python and C libraries for the generation of experiments for neuroscience and experimental psychology. PsychoPy includes Builder and Coder - two graphical interfaces to build experiments using the PsychoPy Python module.

Links:

See the project website for documentation and more information about PsychoPy.

All support now takes place in the psychopy forum

See Github for psychopy's source code. Contributions are very welcome!

521 questions
0
votes
1 answer

Using PsychoPy changing origin coordinate

I am trying to make a program that gets Pen coordinate from wacom tablet which I manage to figure out using this: data = display.Display().screen().root.query_pointer()._data X = data["root_x"]-cfg['winpos'][0]-(cfg['width']/2) Y =…
user2962635
  • 151
  • 1
  • 4
  • 16
0
votes
2 answers

Python: How to give participant the possibility to an answer

I am making an experiment, and the participant must get the possibility to correct himself when he has given the wrong answer. The goal is that the experiment goes on to the next trial when the correct answer is given. When the wrong answer is…
Eva
  • 1
  • 1
0
votes
1 answer

How do I compare a random 'x' to a 'getKeys' from a list

In my experiment I'm showing a random generated stimulus 'x', which I need to compare to a key that's been giving in by the user of the experiment. Basically, I have two lists: one with the stimuli and one with the correct answers (the keys they…
vj93
  • 1
  • 2
0
votes
1 answer

response codes in audiovisual stimulus presentation

I built an experiment in Builder view Psychopy (v1.82.01) presenting an image only, sound only and image plus sound together. For my analysis, I need a record of whether the stimulus is image, sound and image plus sound. Do the columns in the excel…
0
votes
1 answer

How to create a continuous visual.Window background/wrapping of background?

For instance, in my case, a cluster of random dots derived from ElementArrayStim spreaded across the stimulus window with the cluster centred on (0,0) moving at x=5. Eventually, each of these dots will hit the window's right boundary. How do I make…
Ang Jit Wei Aaron
  • 389
  • 1
  • 3
  • 19
0
votes
1 answer

ElementArrayStim and advice on wrapping a background

visual.ElementArrayStim(win, units=None, fieldPos=(0.0, 0.0), fieldSize=(3000.0, 1000.0), fieldShape='sqr', nElements=100, sizes=5.0, xys=None, rgbs=None, colors=(1.0, 1.0, 1.0), colorSpace='rgb', opacities=1.0, depths=0, fieldDepth=0, oris=0,…
Ang Jit Wei Aaron
  • 389
  • 1
  • 3
  • 19
0
votes
1 answer

Python: using pygame to play sounds

So I'm trying to run a for loop in a way that a sound will be played together with an image for as long as the sound lasts. I can see the image displaying for a very short time and also I hear the sound playing. But then it all stops, I'm not able…
Caeline
  • 119
  • 3
  • 13
0
votes
1 answer

Detect object at mouse click location

I have a large number of different image stimuli presented in various locations on screen. When the participant clicks on a stimulus, I need the name of that stimulus item available for use in the rest of the script. For example, you can achieve…
0
votes
1 answer

PsychoPy : Displaying in main process and Time through a subprocess

I'm using a psychopy code that was done by a previous Phd student of the lab. This code aims to display stimuli (random dot kinematogram) and use a subprocess for precise timing. The subprocess is created with the following line : process =…
S-Oxyde
  • 113
  • 1
  • 11
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

Is it possible to install pymedia on recent Ubuntu builds?

I have all the dependencies for pymedia, but they are all "not found" by the installation script. I see that pymedia is no longer in active development, but just want to see if anyone has been able to install it on Ubuntu 14.04, on a 64-bit machine.…
Patrick Williams
  • 694
  • 8
  • 22
0
votes
0 answers

Is it possible with pygame to play two movies simultaneously and save them as a single movie?

Edit: I am running python 2.7.6, on Ubuntu 14.04 Edit: My ultimate goal is to output a single movie file of the output of this script I've read all the tutorials and stackoverflow question/answers I can find on this topic and can fairly easily play…
Patrick Williams
  • 694
  • 8
  • 22
0
votes
2 answers

schedule functions to execute at a specific time in psychopy asynchronously

I am looking for a function to schedule a function call asynchronously, for example presenting an Image after 100ms, after 200ms and after 300ms and masking this image at 150ms 250ms and 350ms. I am sure I can do this with delays, but I would…
knk
  • 856
  • 3
  • 10
  • 24
0
votes
1 answer

How to create 3D text that is animated (comes from background into forefront)

I am not proficient at programming as I am just learning. I have to create a novel experiment and desire to know how to create 3D text images in PsychoPy with the builders model. PsychoPy is on a Windows 8.1 laptop with the standalone version…
Death
  • 11
0
votes
1 answer

How to populate psychopy.event.getKeys()?

Hitting apostrophe is not doing anything. start_scan is just a textStim. while True: print event.getKeys() start_scan.draw() win.flip() if "'" in event.getKeys(): break event.clearEvents()
broinjc
  • 2,619
  • 4
  • 28
  • 44