Howdy, Stranger!

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

Supported by

[solved] latency between different cycles in a loop

edited February 2015 in OpenSesame

hi,

I've set up this experiment (link below), a Stimulus should last 9 seconds (1 second fixation symbol and an 8 seconds audio file).

However, between the cycles of the experimental block loop, I get like a 4-5 second long pause before the program advances to the next trial. I also tried out different back-ends, but it changes nothing.

Does anyone have an idea what might be causing the problem?

http://www.destear.delphinus.uberspace.de/cadence.opensesame.tar.gz

Comments

  • edited February 2015

    Hi,

    The reason for these breaks is that you specified a time out for the keyboard_response item that corresponds to the position of your target sound in seconds. So if the target appears at the first position, the sequence will continue quite quickly. However, if the target comes last, you'll wait 8 seconds more.
    What you should do is setting the time out to 'infinite' and untick the box Flush pending keypress (see image)

    image

    Aside of this, you don't use the right way of specifying allowed responses. If you open List all available keys, you will see that RCTRL should be right control and accordingly for the left key. Both keys have to be separated by a semicolon.

    Addionally, o make sure that there is only one key press per trial, you can add later in the sequence another keyboard_response, whose time out is set 0 (so just skipped) but flushes all keypresses.

    Finally, a rather unrelated remark. According to your instruction, I believe reaction time is your dependent measure. If so, I'm afraid, you will run into trouble, because the reaction time is only measured after the audio player is finished. So what you must do, is setting its duration to 0. Be aware, this will cause other (solvable) issues. Let us know if you can't figure out how to solve them.

    I hope this was helpful.

    Eduard

    Buy Me A Coffee

  • edited 10:39PM

    Thank you for your answer!

    The Keyboard responses have to be RCTRL and LCTRL, otherwise the circle won't show - the keys work either way separated by comma or semicolon and a also listed in available keys written like that.

    I realize now that setting the audio duration to 0 is required. The Key-Response time out should be set at "[eigthpos]000 ms" an the response onset on "([eigthpos]000-500) ms"
    The subjects should always have 500 ms at the offset of the eighth-note to press the button (left or right ctrl depends on the circle/dot shown beforehand)

    Setting the audio to 0 causes new cycles to be played after I press a key, it should of course always play 8 seconds (+ that one second for the circle in each cycle)

  • edited 10:39PM

    Hi,

    The Keyboard responses have to be RCTRL and LCTRL, otherwise the circle won't show -

    I don't get why the key identity has any effect on the stimuli on the canvas.

    the keys work either way separated by comma or semicolon and a also listed in available keys written like that.

    Okay, apparently the key labels are not the same between our versions, but if you can see the correct key labels in your logfile, everything is fine (running your uploaded experiment, only showed "None"s in my case, not "LCTRL/RCTRCL")

    I'm confused here. Does it work now like you want, or is the next video still starting too early?

    Buy Me A Coffee

  • edited 10:39PM

    I uploaded a new version, same link as above. I changed the experiment according to your instructions except the keymapping. The lag seems to be gone :)

    It still does not work though, because it won't let me use calculations for the duration of that last sketchpad called ISI and the button response, its onset should be on sth like [eighthpos]000-1000, the timeout on [eighthpos]000, an the entire trial should be 9 seconds long.

  • edited 10:39PM

    Hi,

    Yes, I don't think you can put operations into the duration field of a sketchpad.
    Instead, you can add an inline_script just before the ISI item and put

    # check whether the math does what you want it to
    exp.ISI = 8000-exp.eighthpos*1000
    

    in its prepare phase. Then you can place [ISI] as duration in the sketchpad. This should do the trick, right?

    Eduard

    Buy Me A Coffee

  • edited 10:39PM

    the inline script did the job, thanks!

  • edited February 2015

    -

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