Howdy, Stranger!

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

Supported by

Control timing within a sketchpad

edited December 2016 in OpenSesame

Hi Sebastian,
I was wondering if there was any way to control timing within a sketchpad from its script. For example, if i want the same sketchpad to show a green and a red circle but with each circle having a duration of 300 ms can I manipulate the sketchpad's script to do this or do i have to create a separate script (and if yes how exactly?)? I really need one sketchpad for this so please let me know of any such solution.
Thanks!

Comments

  • Hi,

    If I understand correctly, you first want to show a circle in one color, and then in the other color? You'll need to use two sketchpads for this. Out of curiosity, why would it be problematic to use two sketchpads?

    Cheers,

    Josh

  • Hi It is part of a rhythmic sequence with limitations of which pattern to present and having 2 sketchpads just makes things harder....except if i make a loop for these 2 sketchpads and work this way?

  • You will need a loop either way. If your trial consists of e.g. a circle in a certain color, then another circle in a certain color, and then a response, you'll need two sketchpads and a response item in a sequence item. That sequence item can be placed in a loop item, and in the loop you define your conditions (e.g. what color your first and second circle should be).
    When you draw a circle in the sketchpad, you can click the middle icon of those three icons in the upper right corner to reveal a script. In this script, you see a parameter named color. Here, you could add something like color = [first_circle] for the first sketchpad, and color = [second_circle] for the second sketchpad. In the loop item you'll have two condition variables named first_circle and second_circle, that can have multiple values as specified in the cells of each column (e.g. red, blue, green).

    It may be worthwhile for you to do a tutorial and learn about building a trial. Displaying ten sketchpad really isn't more difficult than displaying one sketchpad! http://osdoc.cogsci.nl/2.9/tutorials/step-by-step-tutorial/

    Cheers

    Josh

  • Thanks. However, I plan to show, for example, a red circle of 600 ms, a green circle of 600 ms, a red that goes to green circle each 300 ms for a total of 600 ms, and a green that goes to red each 300 ms for total of 600 ms. This sequence of 4 elements have to be presented with some limitations for instance the red-600ms cannot be followed or preceded by a red circle and the same goes for the green 600ms circle. So just making a simple loop is easy but the difficulty for us is to create the pattern i just described. Any ideas?

  • Hi Argiro,

    Basically, the issue here is not the sketchpad but the definition of the trial sequence, right? The presentation of the stimulus is rather straightforward. Just like Josh described you need for each stimulus one sketchpad, in which you define the color and the duration generically (as variables).
    Earlier in the script, you need to define these variables. I think the easiest would be doing it in an inline_script, but maybe there are also other ways. Here, one suggestion:

    import random
    
    # possible trial combos (example)
    colors = [['red','green','red_green','green_red'],['green','red','red_green','green_red'],['red','green','green_red','red_green']]
    
    no_trials = 30
    no_circles_per_trial = 4
    trials = []
    
    while len(trials)< no_trials:
         trial_colors = random.choice(colors) # choose a trial randomly
         trials.append(trial_colors) # attach to trial_list
    
    

    This is just one example of how you could do it in general. I'm quite sure it won't do for you the way it is, but maybe you can figure it out by yourself based on this code. If you like you can share all the requirements and details of your paradigm with us, then we can help you better creating a procedure to make your sequences.

    Does this help/

    Eduard

    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