Howdy, Stranger!

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

Supported by

Multi-character problems

Dear all,

I ‘m experiencing some difficulties in programing my experience with OpenSesame. Before continuing with the details of my problems, I want to apologize about my poor English and my general lack in python programming knowledge. However, I’ll try to be the clearest I can, but do not hesitate to tell me if you don’t understand what I’m trying to describe.

Well then…

I’m trying to program the Remote Associate Test (RAT) and for this purpose, I need to register multi-character answers. I found on another topic an inline script that was very very helpful (see below), but I still have some problems.

First, I’m not able to make any feedback (for examples, a green/red fixation point and something like the “feedback item” that gives the percentage of correct answers and the average response time) to the participant about if his answer is true or not. I mean that OpenSesame doesn’t seem to understand when a response is true if it’s a multi-character one’s.

Second, I would like to set a response time limit of 25000 ms but I have no clue on how to write it in the inline script.

Third and last, in French language some letters can have an accent like “é”, “è” or “à”, but since the keys to make these accents are the same than the numeric keys, if I try to type one of these letters on my keyboard, it directly considers the number and not the accent. Do you have any method to fix this ?

Thanks in advance!

Adil

Comments

  • Second, I would like to set a response time limit of 25000 ms but I have no clue on how to write it in the inline script.

    instead of while True: you could use while = clock.time()-start_time<25000. If you use that you have to define start time before the while loop.

    Third and last,

    Sorry, can't help with that...

    mean that OpenSesame doesn’t seem to understand when a response is true if it’s a multi-character one’s.

    You can create the correct response yourself. If you have a multicharacter response variable and know what would be the correct response, you can just compare them, and if they are the same, you can set var.correct = 1, else 0.

    Hope this helps,

    Eduard

    Buy Me A Coffee

  • Really thanks for the help !

    However I still don't get how to define "start_time" ? If I assign to "start_time" the value 0, the time won't stop after the current trial, making all following trials to be cancelled instantly. And if I define it as follows "start_time = clock. time", it seems to don't change anything at all.. Do you have any suggestions ?

  • You have to define start time before you enter the loop. Just take the current time: start_time = clock.time()

    Eduard

    Buy Me A Coffee

  • edited November 2018

    The thing is that the clock starts with the first key press but not directly when the item appears on the screen. Do I have to use a thread ?

    Adil

  • I don't understand. When is the clock supposed to start? With stimulus onset or with the first keypress?
    If only with the first keypress, that it doesn't really make sense to make the loop duration contingent on that (what if participant need a minute to make the first key press?). Can you maybe elaborate?

    (and sorry for the late response)

    Eduard

    Buy Me A Coffee

  • Thanks for the answer. The clock is supposed to start after the stimulus presentation (and not at the first keypress). I already find out how to fix my problem.
    Here my solution for anyone who wants to program the RAT with OpenSesame and run into difficulties like me.

    Adil

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