Howdy, Stranger!

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

Supported by

Setting duration based on a calculation with variables

Hi,

I'm creating a test on inhibition of responses. In the first part the participant completes a number of trials responding as quickly as possible to say whether an arrow is pointing left or right.

In the next block of trials I introduce a 'stop signal' in half of the trials. When they hear the stop signal the participant shouldn't respond. The problem I'm having is that I want to set the timing of the stop signal based on the participants reaction time in the first block of trials - so for example, if their reaction time had been 850ms, then I'd like the stop signal to be given 400ms before that. I've tried defining this as [avg_rt] - 400 but that doesn't seem to work - do you have any suggestions?

Thanks,

Jonathan

Comments

  • Hi Jonathan,

    What part does not work? Please provide more details, then we can help you better. So, what did you try, what do you see, are there error messages, etc.

    Thanks,

    eduard

    Buy Me A Coffee

  • Hi Eduard,

    I have set up the trial as follows:

    • Sketchpad showing an arrow pointing to the left or right
    • In half the trials this is then followed by a sound which signals that the participant shouldn't respond
    • At the moment they hear the stop sound 100ms after they see the arrow - I have set this using the duration for the sketchpad
    • However I would like to set the duration based on the participants reaction time in a previous block of trials, and tried to set the duration as [[avg_rt] - 200]
    • When I run the experiment I get the message - "Invalid duration: [493.8 - 200]" - the 493.8 is clearly the avg_rt, but it's not preforming the calculation that I would like it to!

    I hope that makes sense, just in case I've also attached the version of the experiment that isn't working:

    Thanks,

    Jonathan

  • Hi Jonathan,

    There is probably a way to do it like you intend to, but I don't remember exactly what the syntax is supposed to be. A way to get around it, is to add an inline script before that sketchpad, in whose prepare phase you define the duration first. (e.g. var.dur = var.avg_rt- 200), then you can add [dur] as duration in the sketchpad and it should work. If you want the avg_rt to keep on updating during the experiment, you do it on every trial (so in the block loop), or if it should stay constant for a block, you do it before the loop.


    Good luck,

    Eduard

    Buy Me A Coffee

  • Thanks - I'll try that!

  • That seems to be working - thank you!

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