Howdy, Stranger!

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

Supported by

[open] brakes

edited November 2014 in OpenSesame

Hey, in order for a brake message to show after 10 trials and not after trial 20, i put the following "[count_fixation]%10=9 and count_fixation!=19". But the brake message appears after 4 trials for some reason. My purpose was to check the equation works in vivo, in order to change it afterwards to "[count_fixation]%250=249 and count_fixation!=999". Would appreciate your help. Thanks Rotem

Comments

  • edited 6:09PM

    If you simply change it to:

    [count_fixation]%20 = 19
    

    or, for the end result:

    [count_fixation]%500=499
    

    This should work. Unless you had a specific reason for using the (slightly awkward) and [count_fixation] != 19. Did you?

  • edited 6:09PM

    Thanks Edwin.
    I need the brake message to appear after every 250 trails except after trail 1000 (that is why i added the [count_fixation]!=999).
    Would really want to learn the logic behind building the right equation for it.

  • edited December 2014

    If you want to learn about the logic of these conditional statements, please read this page of the Documentation.

    Your approach should work, provided that fixation is an item that is run in each cycle of your sequence. For an example, please see the following script (download the example experiment here).

    # Generated by OpenSesame 2.8.3 (Gutsy Gibson)
    # Tue Dec 02 12:25:17 2014 (nt)
    # <http://www.cogsci.nl/opensesame>
    
    set foreground "white"
    set subject_parity "even"
    set description "Default description"
    set title "New experiment"
    set compensation "0"
    set coordinates "relative"
    set height "768"
    set mouse_backend "xpyriment"
    set width "1024"
    set sampler_backend "legacy"
    set keyboard_backend "legacy"
    set background "black"
    set subject_nr "0"
    set canvas_backend "xpyriment"
    set start "experiment"
    set synth_backend "legacy"
    
    define sequence experiment
        run getting_started "always"
        run loop "always"
    
    define feedback feedback
        set duration "keypress"
        set reset_variables "yes"
        set description "Provides feedback to the participant"
        draw textline 0 0 "[count_welcome]" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
    
    define notepad getting_started
        __note__
        Hi,
    
        Welcome to OpenSesame 2.8.0 "Gutsy Gibson"!
    
        If you are new to OpenSesame, you may wish to follow one of the tutorials,
        which can be found online.
    
        There are also many example experiments, which may help you to get started
        with creating your own. These can be found in the "examples" folder provided
        with OpenSesame or, again, online,
    
        For more information, please refer to OpenSesame documentation area:
    
        - <http://osdoc.cogsci.nl/>
    
        And feel free to ask for help on the forum:
    
        - <http://forum.cogsci.nl/>
    
        Have fun with OpenSesame!
    
        --
    
        Sebastiaan
        __end__
        set description "Some pointers to help you get started!"
    
    define loop loop
        set repeat "10"
        set description "Repeatedly runs another item"
        set item "sequence"
        set break_if "never"
        set column_order ""
        set cycles "1"
        set order "random"
        run sequence
    
    define sequence sequence
        run welcome "always"
        run feedback "[count_welcome]%2 = 0 and [count_welcome] != 8"
        run sketchpad "always"
    
    define sketchpad sketchpad
    
    define sketchpad welcome
        set duration "keypress"
        set start_response_interval "no"
        set description "Displays stimuli"
        draw textline 0 0 "OpenSesame 2.8.0 <i>Gutsy Gibson</i>" center=1 color=white font_family="serif" font_size=32 font_italic=no font_bold=no show_if="always" html="yes"
    
    
  • edited 6:09PM

    Hey, i have the fixation item in every cycle of sequence. The problem was open sesame counted the trials till the brake message including the trails in my practice and measurment blocks and not only in the manipulation blocks as i planned. I put this [count_fixSpeed]%10=9 and [count_fixSpeed]!=19 and now it seems to work well so i will change it to [count_fixSpeed]%250=249 and [count_fixSpeed]!=999 as i planned originally. If there was an easier way to solve the problem would like to be advised about it. Rotem

  • edited 6:09PM

    The fixSpeed is a name i gave for the fixation in the manipulation block in which the brake message was planned for. That way it has been seperated from the counting of the fixation item in the practice and measurment blocks.

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