Howdy, Stranger!

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

Supported by

[solved] Logging responses with logger

edited October 2011 in OpenSesame
Hello - My trials consist of: sampler ("hear_cons" present a sound) + sketchpad ("view_cons" present the choices) + text_input ("input_cons" participant inputs choice) + sketchpad ("rate_cons" present the 1-5 rating scale) + logger

Basically, the participants are hearing sounds, identifying them, and then rating how good they were. I want to collect (1) the participants' input from input_cons and also (2) the key (1 through 5) they pressed to advance from the rate_cons step. When I open up the logger, I expect to see a "response" variable available for view_cons, input_cons, and rate_cons. Instead, I see one line that says "response", and as the source it lists "hear_cons; input_cons". I thought maybe OpenSesame cannot log the keypress used to advance a sketchpad, and that's why view_cons and rate_cons are not available as sources (if this is indeed the case, please let me know).

However, when I actually run the experiment and I look at the logger output, I get response data *only* for rate_cons. That is, for each trial the participant enters a letter for input_cons and presses a number for rate_cons, but only the number is recorded, *even though* rate_cons is not listed as a source of "response" in logger.

So, I am happy that it logs the keypress from rate_cons even though I didn't expect it to, but I am unhappy it does not log the text input from input_cons (which I did expect it to). Can someone help me understand this? What might I be doing wrong? Thanks!

Comments

  • edited 1:28AM

    Hi Jjholiday,

    Thank you for your interest in OpenSesame and welcome to the forum!

    Your not doing anything wrong, really. What you're describing is know and inconvenient behavior of OpenSesame (issue fixed for 0.25), but luckily it's easily overcome.

    Basically, all key presses (regardless of whether its during a sketchpad, keyboard_response, or whatever) are stored in the same response variables ('response', 'response_time' and 'correct'). So, in your case, the response during 'rate_cons' overwrites the response during 'input_cons'.

    What you can do to resolve this is insert an inline_script somewhere after 'input_cons' and before 'rate_cons' in which the response variables are copied to new variables (so they don't get overwritten). Something like this will do the trick:

    self.experiment.set("response_input_cons", self.get("response"))
    self.experiment.set("response_time_input_cons", self.get("response_time"))
    self.experiment.set("correct_input_cons", self.get("correct"))

    Does this make sense? Hope this helps!

    Kindest regards,
    Sebastiaan

  • edited 1:28AM

    Perfect! Thank you!

  • edited 1:28AM

    Hi Sebastiaan:

    Something similar happened to me. I am using a loop of 10 trials and in every trial I’m presenting 3 stimuli: A sound with its corresponding rating on valence and activation (each one with its correspondent key-response ¬–I’m not using response times by now); A picture that should be rated in both variables as well; And a clip that should be rated as well.

    So the sequence goes like this:

    Sound 1; rate valence 1; rate activation 1; Pic 1 rate valence 1; rate activation 1; Clip 1; rate valence 1; rate activation 1

    Sound 10; rate valence 10; rate activation 10; Pic 10 rate valence 10; rate activation 10; Clip 10; rate valence 10; rate activation 10

    When I open the log file I only get the ratings for each variable (valence and activation) but only for the 10 clip trials.

    What can I do? Is something similar to what you already answered to Jjholiday?

    Thanks in advance.

    Raúl

  • edited 1:28AM

    Hi Raúl,

    Have you tried using the exact same solution? This should do the trick.

    Good luck!

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