keypress limit not working
Dear All,
even when there is a response the next sketchpad does not appear directly but stays on till max time delay
Even when reading a prior discussion on a related topic https://forum.cogsci.nl/discussion/312/solved-keypress-or-time-limit we don't find the answer to our problem
Unfortunately due to our equipment with acer tablets we were forced to programm all in the prior opensesame version (3.2. with python 2.7.13)
We set the former sketchpad on 0 and the max time delay on 2000ms and event type 'keypress'
Thanks for informing us if there is a fix or compatibility issue
Comments
Hi laura,
could you try to give more information on your setup? Which items are you using? What is the sequence. You can also share your experiment with us.
Eduard
Hi Eduard, thanks for reaching out !!!
below the general script. I am curious to what you can make of this.
Best regards,
Laura
---
API: 2.1
OpenSesame: 3.2.8
Platform: nt
---
set width 1366
set uniform_coordinates yes
set title "Extended template"
set subject_parity even
set subject_nr 0
set start experiment
set sound_sample_size -16
set sound_freq 48000
set sound_channels 2
set sound_buf_size 1024
set round_decimals 2
set height 768
set fullscreen no
set form_clicks no
set foreground white
set font_underline no
set font_size 18
set font_italic no
set font_family mono
set font_bold no
set experiment_path "C:/Users/stagnin/Documents/v4"
set disable_garbage_collection yes
set description "A template containing a practice and an experimental phase"
set coordinates uniform
set compensation 0
set canvas_backend psycho
set bidi yes
set background black
define sketchpad e1_fixation
# draw fixdot color=black show_if=always style=default x=0 y=0 z_index=0
set start_response_interval no
set duration 1500
set description "Displays stimuli"
draw rect color=white fill=1 h=768 penwidth=1 show_if=always w=1366 x=-683 y=-384 z_index=0
draw line color=black penwidth=3 show_if=always x1=0 x2=0 y1=-10 y2=10 z_index=0
draw line color=black penwidth=3 show_if=always x1=-10 x2=10 y1=0 y2=0 z_index=0
define loop e1_loop
set source_file ""
set source table
set repeat 1
set order random
set description "Exécuter un autre item plusieurs fois"
set cycles 5
set continuous no
set break_if_on_first yes
set break_if never
setcycle 0 target "DPD_1_AF2_p6c.png"
setcycle 0 emotion anger
setcycle 0 category nopain
setcycle 0 correct_response_target n
setcycle 1 target "DPD_1_BM14_p5c.png"
setcycle 1 emotion pain
setcycle 1 category yespain
setcycle 1 correct_response_target c
setcycle 2 target "DPD_1_WF17_p2c.png"
setcycle 2 emotion disgust
setcycle 2 category nopain
setcycle 2 correct_response_target n
setcycle 3 target "DPD_1_WM12_p3.png"
setcycle 3 emotion pain
setcycle 3 category yespain
setcycle 3 correct_response_target c
setcycle 4 target "DPD_1_LF9_p2c.png"
setcycle 4 emotion happy
setcycle 4 category nopain
setcycle 4 correct_response_target n
run essai1_sequence
define sketchpad e1_question
set start_response_interval no
set duration 0
set description "Displays stimuli"
draw rect color=white fill=1 h=768 penwidth=1 show_if=always w=1366 x=-683 y=-384 z_index=0
draw textline center=1 color=black font_bold=no font_family=arabic font_italic=no font_size=40 html=yes show_if=always text=OUI x=-350 y=0 z_index=0
draw textline center=1 color=black font_bold=no font_family=arabic font_italic=no font_size=40 html=yes show_if=always text=ou x=0 y=0 z_index=0
draw textline center=1 color=black font_bold=no font_family=arabic font_italic=no font_size=40 html=yes show_if=always text=NON x=350 y=0 z_index=0
define sequence e1_sequence_fl
set flush_keyboard yes
set description "Exécute séquentiellement plusieurs items"
run e1_loop always
define sketchpad e1_stimuli
set duration 100
set description "Montrer des stimuli visuels"
draw rect color=white fill=1 h=768 penwidth=1 show_if=always w=1366 x=-683 y=-384 z_index=0
draw image center=1 file="[target]" scale=0.5 show_if=always x=0 y=0 z_index=0
define loop essai1
set source_file ""
set source table
set repeat 1
set order random
set description "Exécuter un autre item plusieurs fois"
set cycles 1
set continuous no
set break_if_on_first yes
set break_if never
setcycle 0 empty_column ""
run e1_sequence_fl
define sequence essai1_sequence
set flush_keyboard yes
set description "Exécute séquentiellement plusieurs items"
run e1_fixation always
run e1_stimuli always
run e1_question always
run new_keyboard_response_1 always
define sequence experiment
set flush_keyboard yes
set description "The main sequence of the experiment"
run essai1 always
define keyboard_response new_keyboard_response_1
set timeout 2000
set flush yes
set event_type keypress
set duration keypress
set description "Recueillir des réponses au clavier"
set correct_response "[correct_response_target]"
set allowed_responses "c;n"
Can you send the experiment directly? With the general code you posted here, I end up with an experimental structure that doesn't make sense.
Eduard