Tasks Overview
Tasks Explanation:
- Sound_check: a script which will play short beeps to check how the participant’s audio levels are for subsequent tasks
- Flanker task: a task where participants see 4 arrows facing the same direction (called ‘flanker’ arrow), with a blank spot in the middle, and then a 5th arrow (called ‘target’ arrow) appears in the middle of the other 4. The target arrow may be facing the same direction as the initial 4 flankers (congruent) or facing the opposite direction (incongruent). Participants respond on the button box based on which direction the target arrow faces.
- Goal of this task: Instigate cognitive control networks in the brain
- Sound Output: If the participant gets the arrow direction correct, you’ll hear a ‘click’ on your laptop. If the participant gets the arrow wrong, you’ll hear a ‘beep’ on your laptop. If the participant doesn’t respond in time, you’ll hear a ‘buzz’ on your laptop. Listen to the sounds in the /sounds folder.
- Data output: in /data folder
- Listening Language Task: participants see a quick image (1s), and then the screen is a black fixation cross (+). They then hear either a sentence related to that image, or a unrelated list of common words. When participants hear the audio stop, they press the button box. The fixation cross (+) will turn into a star () upon button press. Then they wait another second or two, and the star () will turn into a square (■). When they see that happen, they respond by pressing the button box again.
- Goal: Map the areas of the brain active when hearing and understanding sentences in context. Uses the lists of common words to regress out the impact of hearing words, and familiar words. Uses the second button press to regress out the motion effects of pressing the button.
- Sound Output: If the participant responds to the star and the square, you’ll hear a ‘click’ on your laptop. If the participant doesn’t respond in time to one or both, you’ll hear a ‘buzz’ on your laptop. Listen to the sounds in the /sounds folder.
- Data output: in /data folder
- The Elevator: short film, just start the task and let it play
- Data output: in /data folder
- Momentous: short film, just start the task and let it play
- Data output: in /data folder
Psychopy Scripts:
Filepath: Box-Box/Holmes_Lab_Wiki/PCX_Round2/MRI/In_scanner_tasks/
- sound_check.py
- flanker_task_TCP_250407.py
- language_task.py
- PlayTheElevator.py
- PlayMomentous.py
Scanning Protocol • Total time: 01:13:17 • Full doc Rutgers: https://rutgers.box.com/s/u5zlr6hktxrqej7wcdf94j1gg2exw0gd
Setup for Running Tasks
There are 4 tasks:
- Flanker task
- Language task
- The Elevator (Movie task)
- Momentous (Movie task)
Step 1: Download
- Download the tasks to your scan computer locally. All tasks are located in this box folder: https://rutgers.box.com/s/qkqr45kfk22q1a3s32qxj8r15022n7ig
Step 2: Psychopy
- If you don’t have psychopy on the scanning computer, you can download based on your operating system on: https://www.psychopy.org/download.html
- You should move the PsychoPy application to your applications folder. if immediately crashing, try searching for your hidden folders in /Users/yourusername and delete folders called .psychopy3 .psychopy2
Step 3: Site Configurations
- In the Box folder of tasks, go into one of the folders and click on ‘siteConfig_McLean’ (or ‘siteConfig_Rutgers’ based on your site)
- Here you can edit site specific configurations:
- *** If you change any, you can test it in that task. Once you’re satisfied, copy/replace that siteConfig doc to EACH of the task folders. All the task folders have a siteConfig doc which needs to be updated with any changes.
"scan_trigger": ["5"],
- "scanner_speaker_index": 0.0,
- "scanner_speaker_names": ["External Headphones", "Studio Display Speakers"],
- "laptop_speaker_index": 2.0,
- "laptop_speaker_names": ["MacBook Air Speakers", "MacBook Pro Speakers"],
- "scanner_volume": 1,
- "laptop_volume": 2.0,
- "button_keys": ["1", "2"],
- "text_size": 2.5,
- "star_size": [1,1],
- "square_size": [3,3],
- "image_size": [30,30],
- "mirror_screen": "False",
- "researcher_key": "space",
- "screenToShow": 1,
- "isFullScreen": "True"
- }
Step 4: Speaker Settings
- Go through steps 1-4 of the ‘Running a Task’
- Then press ‘esc’ key to exit the task
- Find the window that says “PsychoPy Runner”
- Make sure the speakers detected by the script are as you would want them – they’re correctly detecting the scanner speaker output and the laptop speaker output
Step 5: Button Box Keys
- While the scan laptop is connected to the button box in the scanner room (as in, the scan laptop is hooked up how it would be to run tasks), open up any text file (could be Microsoft word, a note, etc) and press the button keys. If it starts typing letters, you’re hooked up.
- Now press your index finger, and see what key gets typed into your file.
- Do the same for your middle finger.
- These will be your two fingers for the tasks.
- In your siteConfig file, replace this line but changing “1” to whatever key goes its typed with your index finger, and “2” to whatever key is typed with your middle finger
Running Tasks
Step 1: Open PsychoPy
Open PsychoPy Application. If you have an older computer, you should quit all other processes running (psychopy can be very buggy, especially when other things are taking up computer memory).
Step 2: Open Coder View
Open the coder view by clicking on this icon: 
Step 3: Open Script
Click the “Open” button to import a file Go to the place you saved the Psychopy scripts Open the folder of the task you want to run Click on the file in the task folder which is a python script
- It’s extension is “.py”
- It says “python script”
- It’s