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
3
votes
2 answers

Getting free text (string) input from participant

Seems a silly question but I can't find in the Docs how to get text input from the user in a PsychoPy Builder experiment. e.g if I had a Text component to display the message "What is your name?" I want to get the text answer (with key echoing to…
jacanterbury
  • 1,435
  • 1
  • 26
  • 36
3
votes
3 answers

Screenshots during a PsychoPy experiment

I am trying to capture a timed screenshot during my psychopy task. I have a fixation cross, followed by 2 faces on the left and right side of the screen, and then a dot. I just want a screenshot of the 1 second time period that the two faces appear…
user3849871
  • 33
  • 1
  • 3
3
votes
2 answers

Incorporate eye-tribe eye-tracker into psychopy

I am designing an experiment using psychopy. I hope to get eye movement data using eye-tribe eye-tracker too. I saw Sol's code for eyetribe. Is there any tutorial or instruction on how to use pyTribe.py so I can track eye movement using eyetribe…
3
votes
1 answer

How do you implement experiments with conditional branching in PsychoPy Builder?

Many behavioural experimental designs in psychology/neuroscience require conditional branching (e.g. only proceed to the test phase if a requisite performance level has been reached in an initial practice phase). PsychoPy’s Builder view allows one…
Michael MacAskill
  • 2,411
  • 1
  • 16
  • 28
3
votes
1 answer

PsychoPy Builder: how to update screen each keypress?

I would like to display a different text object each time the subject presses a key depending on which key has just been pressed and I would like only a specific key to advance to the next trial. For example the screen should display text that says…
Jonas Lindeløv
  • 5,442
  • 6
  • 31
  • 54
3
votes
2 answers

Text with multiple colors in PsychoPy

I am messing around in PsychoPy now, trying to modify the Sternberg demo for a class project. I want the stimulus text—the number set—to display in a variety of colors: say, one digit is red, the next blue, the next brown, etc. A variety within the…
Hank
  • 499
  • 1
  • 5
  • 8
2
votes
3 answers

How can I do the equivalent of "unzipping" arrays in Javascript?

I've been searching for a way to do the equivalent of zipping and unzipping arrays in Javascript. I've found a way to to the zipping, but not the unzipping. Overview: I have two lists and the first members of the lists go together, the second…
Dave
  • 232
  • 1
  • 2
  • 14
2
votes
1 answer

How to add a confidence interval to a PsychoPy RatingScale?

I am programming a task in PsychoPy (version 1.84.2), where participants have to rate the contrast difference between some gratings (e.g. a value between -1 and 1). I designed a rating scale using visual.RatingScale. Now I wanna ask the participants…
juliap00
  • 23
  • 2
2
votes
0 answers

Video freezes shortly before animation with MovieStim3 - PsychoPy

I have a sequence of 2 mp4 videos played 4 times (4 trials), with a fixation cross that appears before each animation as shown in the code below. In order to load, play and draw the animations, I used MovieStim3 following [this demo] made by…
Kathia
  • 502
  • 2
  • 7
  • 20
2
votes
1 answer

How can I draw text to a window using a class?

I'm new to python and PsychoPy. I want to draw a window and show my instructions for a task. If spacebar is pressed, the next instruction is supposed to show. I tried it without using a class but I would like to stick to object-oriented…
Inga
  • 35
  • 3
2
votes
1 answer

adintool or psychopy for capturing speech for recognition by Julius?

I am working with Julius to recognize speech. I would like to have speech passed to Julius consistently as long as the mic is running, and store individual words to a library. I am looking for the best method to record and/or pass audio only when…
WhooNo
  • 911
  • 2
  • 12
  • 28
2
votes
1 answer

Presenting same RatingScale multiple times in for loop

I want to present the same rating scale multiple times in a for loop. I tried doing it like this for i in range(5): while rating_scale.noResponse: rating_question.draw() rating_scale.draw() win.flip() if…
Selin
  • 33
  • 3
2
votes
1 answer

Psychopy on Surface Pro 6: Can touchscreen be used to press AND hold a button similar to a mouse click?

SPECS: Using PsychoPy v1.90.3 Window 10 Pro 6 running Windows 10 BACKGROUND: I am programming a touchscreen task to use with children (reference image linked below). In the task, children need to press and hold the red 'home' button for 1.5…
Jyonehir
  • 21
  • 3
2
votes
1 answer

Presenting only a subset of conditions

I have a simple experiment with 3 blocks. Instead of putting stimulus (words) into three different files, I set them in one file and want to use ‘selected rows’ to assign them to different tasks (blocks). Below is the flow. [selected rows:…
Xiaotong
  • 43
  • 4
2
votes
1 answer

Am I reading the notation of a heavysidestep function correclty for the leaky integrate-fire-or-burst neuron model?

As a passion project I'm recreating a neuronal model from XJ Wang's lab at NYU. The paper is Wei, W., & Wang, X. J. (2016). Inhibitory control in the cortico-basal ganglia-thalamocortical loop: complex regulation and interplay with memory and…
Angus Campbell
  • 563
  • 4
  • 19
1 2
3
34 35