Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

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

    Buy Me A Coffee

  • 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

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games