Howdy, Stranger!

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

Supported by

[solved] Randomizing pictures on one sketchpad

edited May 2013 in OpenSesame

Hi, Sebastiaan,

In my experiment, I create a sketchpad to present 2 pictures each time. Furthermore, the 2 pictures come from the same 9 files. I set two level loops for the 9 files in random orders. However, the 2 pictures show the same one file on the screen sometimes, and I don’t want to see that.

Could you teach me how to solve the problem, please? Thank you so much. By the way, I'm using OpenSesame 0.27.2.

Best regards,

Peter

Comments

  • edited 6:35PM

    Hi Peter,

    There are several ways in which you can make sure your stimulus pairs will never consist of two identical pictures. Below I will give two suggestions.

    Firstly, you could adapt your loop table such that you manually remove all the cycles in which the first and the second image are the same. More specifically:

    1.) Use the variable wizard in your block loop to create a table containing all possible combinations of the two images. For more information about the variable wizard, see for example Step 3 in the the step-by-step tutorial .

    image

    2.) Manually remove all the combinations in which the variables image1 and image2 (or whatever you called them) have the same value (for example, 'pict1'). Next, change the number of cycles to the new number of possible image combinations (in your case, this will change from 81 to 72).

    image

    3.) Use the square-bracket method to present the two images in your sketchpad adapting the sketchpad script to something like the following (for more information see for example Step 6 in the the step-by-step tutorial):

    set duration "0"
    set description "Displays stimuli"
    draw image -320 0 "[image1].bmp" scale=1 center=1 show_if="always"
    draw image 224 0 "[image2].bmp" scale=1 center=1 show_if="always"
    

    A working example experiment using this method is uploaded here (download, change the extension from .txt into .opensesame, open as normally and add four images called 'pict1.bmp', 'pict2.bmp', 'pict3.bmp', and 'pict4.bmp' to your file pool):

    Alternatively, you could use Run-if statements to indicate that the items in your trial sequence (such as your sketchpad, and for example, a keyboard_response item) should only be run under certain conditions (in your case, when the stimulus pair does not consist of two identical pictures).

    More specifically:

    1.) Create a loop table as described above.
    2.) Create a sketchpad item as described above.
    3.) Use the Run-if-statement boxes in your trial sequence item to indicate that the trial items should only be run when the first image is not (!=) the same as the second image, like so:

    image

    For more information about conditional statements, please see this article:

    A working example experiment using this method is uploaded here:

    Does this help? Please let us know if you have any more questions!

    Best,

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited 6:35PM

    Hi Lotje,

    It works! I really appreciate your help! The first way is great to my experiment. Thank you so much!

    Best regards,

    Peter

  • edited 6:35PM

    Great! Good luck with your experiment and don't hesitate to ask any other questions.

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited 6:35PM

    Thanks again for your kind help. I will keep going and do my best.

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