Howdy, Stranger!

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

Supported by

[solved] Log variables from inline

edited July 2015 in OpenSesame

Dear all,

In my task I have an inline where I update the position of a cursor that moves along a rating scale (a line with numbers from 0 to 10) based on participant's button press (each left button press moves the cursor to the left and each right button press moves the cursor to the right, on the top of each number). When the participant reaches the number that corresponds to her choice, she presses the middle button. I do this with a while loop (i.e., while the response is different from the down button, update the cursor position). How can I record in the results file where the cursor was when the subject pressed the down button? I ask two questions in my rating scale, therefore I created a variable "response" for the first, and a variable "response_2" for the second. I think I need to record each button press in order to retrieve where the cursor was when the down button was pressed (because participant can move the cursor as many times as she wants on the right/left before reaching her decision).

Any tip would be great!

Comments

  • edited 10:46AM

    Hi,

    Looking at the script you posted in the previous thread i think the fastest option is to manually log your pointer value since it changes with each button press.

    Insert in your inline after the middle button has been pushed:

    self.log(pointer)

    The same for your second question:

    self.log(pointer_2)

    I'm not sure how it interacts with the existing log file (i.e if the file remains readable), but otherwise you can create your own log file at the beginning of your experiment which replaces the standard logger.

  • edited 10:46AM

    Hi Manu,

    What Knante said works fine, but keep in mind that manually logging variables besides having all variables automatically logged may result in messy logfiles. You can also simply set the pointer value as a variable once the participant has pressed the middle button: exp.set("decision", pointer) - and let the automatic log item do the rest. The logger automatically logs all experimental variables, so you would end up with a column called "decision" with all the pointer values for every trial in your logfile.

    Cheers,

    Josh

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