Howdy, Stranger!

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

Supported by

[open] Prevent a picture to be shown twice

edited July 2013 in OpenSesame

Dear community,

it's me again. Hope that I'm not spaming with all my questions ;-)
I have a follow up question to my microexpression experiment. The experiment exists of 7 loops and every loop is called 7 times (see picture below for more details). In every loop there's a random picture shown (the variable 'emotion').
Here's my question: how can I prevent that one picture is shown two or more times? I need to get sure that every picture is shown only one time.

image

Best wishes
Daniel

Comments

  • edited 7:14PM

    Hi Daniël,

    Is it possible for you to provide us with the code of your experiment?

    • Open the "General properties" tab, click "Script editor" and copy the whole script,
    • go to pastebin.com or gist.github.com, upload your script there (simply paste and submit)
    • and provide us with the resulting link in your forum post.

    I think I understand the question, but just to be sure I think it would help if I could see the experiment myself.

    Best,

    Lotje

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

  • edited 7:14PM

    Hi Lotje,

    here's the link to my experiment. Thanks for your help :-)

    Daniel

  • edited 7:14PM

    Hi Daniël,

    Thanks for the link.

    If I understand correctly, you don't want stimuli from within a given loop (e.g. 'fearful_loop') to be repeated, right?
    One way to achieve this is as follows:

    Firstly, append an inline_script item to the beginning of all your 'sub' sequences:

    image

    Secondly, put the following code in the inline_script item (see comments for more information):

    # Get the loop item from the items dictionary:
    loop_item = exp.items['%s_loop' % self.get("Emotion2")]
    
    # And remove the current cycle, such that the stimulus presented
    # on the current trial will never be shown again.
    
    # In other words, if your fearful_loop is run again, it will not contain
    # the previously-shown 'Emotion's' anymore, and therefore they cannot
    # be shown multiple times by coincidence.
    
    for cycle in loop_item.matrix:
        if loop_item.matrix[cycle]['Neutral'] == self.get('Neutral'):
            break
    
    del loop_item.matrix[cycle]
    

    Note that this quick way to achieve your goal involves changing the internals of OpenSesame, since we're manually adapting the content of the in-the-GUI-defined loop items.
    For another thread on this issue, see:

    There are other, more transparent ways to prevent stimuli from being presented twice as well, but those involve more inline_script items and would require a bigger change in the outline of your experiment. That's why I'd suggest the above, somewhat complex method first (but I'm happy to explain the other one as well, if you want).

    An example experiment can be found here:

    Best wishes,

    Lotje

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

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