Skip to content
Snippets Groups Projects
Commit a08cdf93 authored by Josh Zosky's avatar Josh Zosky
Browse files

Need to implement updates and create a new project for visual oddball.

parent c3550966
No related branches found
No related tags found
No related merge requests found
VISUAL ODDBALL
80% 10% 10%
Frequent Target 1 Target 2
Blue Squares Blue Triangles Blue Circles
500 ms blank
750-1250ms fix
500ms stim
press button for target 1, another button for target 2
When did last target of same time occur
500 trials total
...@@ -6,7 +6,7 @@ from psychopy import core, event ...@@ -6,7 +6,7 @@ from psychopy import core, event
def start(win, fixation_screen, pause_screen, stim_list, stim_order, maker, data_file, hardware=None): def start(win, fixation_screen, pause_screen, stim_list, stim_order, maker, data_file, hardware=None):
# Set trial constants # Set trial constants
start_alpha = 1.0 start_alpha = 1.0
change_time = 5000 # milliseconds change_time = 6000 # milliseconds # TODO:change happens in 2 sec blocks
change_rate = 1000 / 60.0 change_rate = 1000 / 60.0
change_value = change_time / change_rate change_value = change_time / change_rate
constants = (start_alpha, change_time, change_rate, change_value) constants = (start_alpha, change_time, change_rate, change_value)
...@@ -42,6 +42,8 @@ def start(win, fixation_screen, pause_screen, stim_list, stim_order, maker, data ...@@ -42,6 +42,8 @@ def start(win, fixation_screen, pause_screen, stim_list, stim_order, maker, data
hardware.send_event(key='imag', label='ImageAppears', description='Image appeared on-screen', hardware.send_event(key='imag', label='ImageAppears', description='Image appeared on-screen',
table=trial_info) table=trial_info)
trial(win, trial_clock, stim_pair, constants) trial(win, trial_clock, stim_pair, constants)
# TODO:Move response to post-image so no motor artifact in trial. Include randomized response buttons for each
# TODO: trial to avoid preparatory activity, indicate onscreen what each button represents for that trial (e.g. 1=change detected, 4=change not detected)
pause, response, response_time = check_response(event.getKeys(timeStamped=trial_clock)) pause, response, response_time = check_response(event.getKeys(timeStamped=trial_clock))
if pause: if pause:
escape = pause_screen.show() escape = pause_screen.show()
......
...@@ -24,7 +24,7 @@ SCREEN_RESOLUTION_Y = 1080 ...@@ -24,7 +24,7 @@ SCREEN_RESOLUTION_Y = 1080
SCREEN_RESOLUTION = (SCREEN_RESOLUTION_X, SCREEN_RESOLUTION_Y) SCREEN_RESOLUTION = (SCREEN_RESOLUTION_X, SCREEN_RESOLUTION_Y)
# Conditions for trials # Conditions for trials
# # # TODO:Reduce the number of images to 120 so all images are seen by all participants
IMAGE_ORIENTATION = ('L', 'R') IMAGE_ORIENTATION = ('L', 'R')
CHANGE_BLINDNESS_TYPE = ('absent', 'present', None) CHANGE_BLINDNESS_TYPE = ('absent', 'present', None)
BLOCKS = 20 BLOCKS = 20
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment