Howdy, Stranger!

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

Supported by

Collecting responses while stimulus remains onscreen OSWEB

Hi,

I want to display a stimulus in a sketchpad, and limit the response time to 2500 milliseconds (using a keyboard response). But - i wants that after the subjects response (by a keypress) the stimulus will still appear on the screen.

In the past it was possible using coroutines, but this feature is not supported in OSWEB.

Does anyone have any suggestion on how to make this happen in OSWEB as well?

so far i have tried this sollution (without much success):



In the first sketchpad (emotinal_pic) the subject response useing a keypress (keySB_emo with timeout of 2500 milliseconds), then another sketchpad appears (emotinal_pic_1) for a time (timeLeft) that depends on the response to the previous stimulus (emotinal_pic).

When I run the code i get an error: time can not be negative (I also tried to put it at an absolute value, and it still does not work).


Any ideas?

Thanks!

Comments

  • Hi @rotemB1 ,

    At first glance, your approach seems correct, but you should determine vars.timeLeft in the Run phase of the script, because this needs to happen after the response has already been collected.

    There's also a rudimentary implementation of coroutines in OSWeb, courtesy of @Daniel , so you can try if this works in your specific case. But no guarantees—coroutines are not officially supported! (As the compatibility check will also tell you.)

    — Sebastiaan

  • Hi  Sebastiaan,

    Thank you for your answer!

    I've tried both of your solutions,

    Even when i determine vars.timeLeft in the Run phase i get the same error: time can not be negative

    When i set the timeLeft variable as a function of the response time (only "vars. respone_time_keySB_emo"(removing "2500-")) i get another warning, that this variable is not found. I think that i do not access this variable in the right way (like opensesame doesn't know which variable it is). How can i solved this?

    Regarding your second suggestion, i tried it and it workes! but, whan i upload the experiment to Jatos the background of the emotinal_pic (inside the coroutines ) changes into black (in opensesame its white). i tried to "set background white" but it still does not work.

    I will be happy if you will have a suggestion for me

    Thank you!

  • update:

    after digging around i see that i cannot access a variable that i define in run time only to those who i define in the prepare script, thing is the 'Duration' i want to set to my sketchpad is based on a value that i know only in runtime, any ideas how can i do so?

  • Could you use a feedback item? They are virtually identical to sketchpads, except that they are produced in the run phase rather than the prepare phase.

    See here:

    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