Howdy, Stranger!

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

Supported by

[solved] setting correct_response in keybord_response items

edited November 2013 in OpenSesame

Hi all,

I have an issue I haven't been able to fix and would really appreciate if somebody could help me out.

In my experiment participants see a stimulus and are supposed to judge if it is a word or a nonword by pressing either "z" or "/" . The stimuli are displayed on a sketchpad and responses are collected by keybord_response items.

Response keys are counterbalanced in the ''counterbalance'' loop. A variable called [wrd] says which key signals words and [nonwrd] does similarly for nonwords. Now, to code whether a stimulus is a real word the variable [real] is created in practise/main_task loops. If [real] = 1, it is a word.

All I want to do is to set correct_response in keyboard_response items so it would be true, i.e.,
if real = 1: set correct_response [wrd] else: set correct_response [nonwrd]

I tried to do it by creating two keyboard_response items (i.e., word_response with correct_response set to [wrd] and nonwrd_resp set to [nonwrd]) and running them accordingly to [real] for each stimulus. For some reason though, it seems that after the first cycle BOTH items are being run for each stimulus.

Then I tried to write a bit of inline_script that would the trick, but failed.

There is one more thing about my design you might have noticed looking at the screenshot attached. There is a couple of sketchpads in each sequence, but only one of them is being randomly chosen and run for a cycle. The colour_script is doing it for me. I don't think this has much to do with my problem, but I'm mentioning here just in case.

I would be most grateful for any help. Thanks!

http://img.cogsci.nl/?q=528a1b49cf857

image

Comments

  • edited 9:48PM

    Hi,

    You could use a very short inline script to do this. Add it to your sequence somewhere, and post the following in the Prepare phase:

    if exp.get("real"):
        cor = exp.get("wrd")
    else:
        cor = exp.get("nonwrd")
    
    exp.set("correct_response", cor)
    
  • edited 9:48PM

    Hi Edwin,

    Your solution works, thank you so much!

    J

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