# keep track of start time/frame for later use_pen_instruct_txt_2.tStart = t # underestimates by a little under one frame use_pen_instruct_txt_2.frameNStart = frameN # exact frame index use_pen_instruct_txt_2.setAutoDraw(True) # *practice_image* updates if t >= 0.0 and practice_image.status == NOT_STARTED: # keep track of start time/frame for later practice_image.tStart = t # underestimates by a little under one frame practice_image.frameNStart = frameN # exact frame index practice_image.setAutoDraw(True) # >>> iohub Custom Code pen_samples = tablet.getSamples() if t >= 0.0 and pen_traces_stim.status == NOT_STARTED: pen_traces_stim.tStart = t # underestimates by a little under one frame pen_traces_stim.frameNStart = frameN # exact frame index pen_traces_stim.setAutoDraw(True) if t >= 0.0 and pen_pos_stim.status == NOT_STARTED: pen_pos_stim.tStart = t # underestimates by a little under one frame pen_pos_stim.frameNStart = frameN # exact frame index pen_pos_stim.setAutoDraw(True) if pen_samples: pen_traces_stim.updateFromEvents(pen_samples) pen_pos_stim.updateFromEvent(pen_samples[-1]) # <<< iohub Custom Code # check if all components have finished if not continueRoutine: # a component has requested a forced-end of Routine
practice_image.frameNStart = frameN # exact frame index practice_image.setAutoDraw(True) # *practice_end_image* updates if t >= 0.0 and practice_end_image.status == NOT_STARTED: # keep track of start time/frame for later practice_end_image.tStart = t # underestimates by a little under one frame practice_end_image.frameNStart = frameN # exact frame index practice_end_image.setAutoDraw(True) # >>> iohub Custom Code # *pen_traces_stim* updates if t >= 0.0 and pen_traces_stim.status == NOT_STARTED: # keep track of start time/frame for later pen_traces_stim.tStart = t # underestimates by a little under one frame pen_traces_stim.frameNStart = frameN # exact frame index pen_traces_stim.setAutoDraw(True) # *pen_pos_stim* updates if t >= 0.0 and pen_pos_stim.status == NOT_STARTED: # keep track of start time/frame for later pen_pos_stim.tStart = t # underestimates by a little under one frame pen_pos_stim.frameNStart = frameN # exact frame index pen_pos_stim.setAutoDraw(True) pen_samples = tablet.getSamples() if pen_samples: pen_traces_stim.updateFromEvents(pen_samples) pen_pos_stim.updateFromEvent(pen_samples[-1])