Howdy, Stranger!

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

Supported by

[solved] Response collection during target display

edited April 2015 in OpenSesame

I'm sure this is a relatively easy fix, but how can I make sure the keyboard response is being collected during the target display presentation. So, my project is similar to the Theeuwes additional singleton paradigm, in that there is a visual search display and the participant responds to the orientation of a line segment located in the center of the stimuli. How can I have a keyboard response collected during the target display, instead of after it is presented (and also have the reaction time data stored)? The only way I've figured out (with my limited programming skills) is to have the target display then after that a keyboard response. I want the target display to only last until a response is made or 2000 ms have passed (whichever comes first).

In addition to that, how would I save the response collected and use it on the subsequent display which provides feedback? I'm doing a reward study, so a correct response will give the participant either a high or low reward (as long as presenting the running total for the experiment thus far).

One other issue I'm having difficulty with is setting up a variable "Category SOA" which has 3 different values. I'm presenting a category name at the beginning of every trial, which is then followed by the target display. I want the participant to be unaware of when exactly the target display will appear, so the SOA between category presentation and target display will be randomly assigned to one of 3 different lengths. How would I do this?

I would appreciate any and all help! So far this forum has been fantastic in helping me out!!

Comments

  • edited 6:12AM

    Never mind on the display and keyboard response part. I apologize for missing that in the beginner tutorial when I went through it the first couple times. I'm not sure how I missed that!

  • edited 6:12AM

    For the feedback question, again I didn't utilize the tutorial to its full potential and I apologize. However, I am still stuck on how I would implement a variable reward (either 5 cents or 1 cent) and then the running total. I want each trial to add the reward given on that trial to a running total for the experiment up to that point. I know how to write this in English (I just did) but I'm struggling on how to "translate" into Python/Open Sesame lingo.

  • edited 6:12AM

    Hi,

    The basic strategy (and pythonic wording) to update the total reward is following:

    if correct_response:
        total_reward += current_reward
    

    This you do on every trial (so within the trial_loop). Additionally, you have to initialize the total reward once in the beginning of the experiment: total_reward = 0.

    Finally, you want to have variable reward. This you can accomplish in multiple ways, depending on what you exactly mean with "variable". If it can be completely random,
    you can create a list: possible_reward = [1,5] and pick every trial randomly from it: current_reward = random.choice(possible_reward).
    If it has to be counterbalanced, you need to do it slightly differently, which isn't much harder though.

    Let us know if you need more help.

    Good luck,

    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