Howdy, Stranger!

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

Supported by

OSWeb Loop/Block Convertion not working properly.

Hi all,


I've made a project in OpenSesame, and it works great running locally. However, when I convert to OSWeb it does not work properly.


I have a big loop that will show 100 images in total. After every 20 trials the code will break to show a resting screen, then, it reenters the loop with a different type of image. So, basically, I have 5 blocks of 20 trials and each block is a different type of stimulus.

Running locally it works brilliantly. However, when running online only the first block is shown and the rest is only resting screens...


To clarify a little bit more, running the experiment I'm receiving something like:

------------------

Description of Block1

   Trial 1

   Trial 2

   .

   .

   .

   Trial 20

Description of Block 2

Description of Block 3

Description of Block 4

Description of Block 5

End Screen

------------------

A Fixation Cross is showed before every trial.

I'm suspicious that the online version is not recognizing my break if statement, but....

My break if statement is: ([count_FixationCross]+1)%20 == 0 and [count_FixationCross] > 0


ps: I'm trying to upload the code for you, but I'm receiving the message "Request Failed with status code 413"


Cheers!

Victor

Comments

  • Main Loop contains a list of 5 blocks (N, W, T, A)

    And Block_loop contains 100 images

  • Hi @VictorVarela


    Break-if statements should work in (the latest versions of) OSWeb. Could you share your experiment by another medium, such as pastebin, so that we can have a closer look?

    To paste the experimental code, you can click the very first item in the overview area (with the OpenSesame item), click General script and copy the code.


    (Or you could try the upload function a couple of more times, perhaps it will work now.)


    Cheers,


    Lotje

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

  • Okay I guess this is what you asked for



    Thanks @lvanderlinden, as always :)

  • Hi @VictorVarela ,


    Unfortunately, the "resume-after" option is not supported in OSWeb yet. (So there's no problem with your break-if statement itself.)


    Is it absolutely necessary for your experiment to have the breaks? And for the trials to be completely random? (If not, you could create 5 blocks of 20 trials, of course).

    If the breaks and the random pulling are indeed necessary, I guess we should implement it in JavaScript. I can look into it, but I'm not particularly good with JS myself... ;)


    Cheers,


    Lotje

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

  • Dammit!!

    Well, at least now we know where the problem is... I will make it sequential if it is not yet implemented :(


    Thanks a lot @lvanderlinden

  • Hi, I have a related issue. I have an experiment with two blocks in the offline version which runs smoothly but as soon as I turn to the online version (i.e. even when just testing online version, the second block is always skipped). I have this issue with two completely different experiments using OpenSesame in its latest version and Firefox or Chrome as default browser, one experiment is attached as example, but the issue replicates in another study. My OS is Windows 10.

    I would be very thankful for any suggestions, best Miriam


  • Hi @mgade ,


    I noticed that you have some sequence items within other sequence items. You should, however, always wrap a loop item around a sequence item (except for the one called 'experiment' at the very top of the overview area. Could you try whether this solves the issue?


    Cheers,


    Lotje

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

  • Hi,

    thanks for your comment.

    So you mean never call a sequence which not embedded in a loop? I was figuring out something in the same direction and wrapped a sequence around my two blocks which actually made things worse, obviously getting the hierarchy of sequences and loops wrong. I will play around tomorrow and will let you know - regards Miriam

  • HI @mgade ,


    O, I see what you mean! The structure seems overly complex! ;)


    What is it that you want to achieve with all those nested pairs of loop and sequence items? Is it just to counter balance the order of the written-word and the tone blocks between participants?


    Cheers,

    Lotje

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

  • hi Lotje,

    exactly that's what I intended and I have no idea how to solve this within a loop. Also my experience with online experiments suggests that shorter blocks and more breaks are better to keep people going :-)

  • edited February 2023

    Hi @mgade ,


    I tried to clean up the experiment by using *linked* copies of as many items as possible, because having *unlinked* copies or doing the same work multiple times is not very good practice (and error prone). Also, I put the questions of the initial questionnaires inside a loop`-`sequence structure, with as a main benefit that you do not have to use multiple logger items (which is also not good practice).


    In understand what you intended to do by counterbalancing the order of the two types of blocks on the basis of subject number. This implementation, however, only works offline, where you, as an experimenter, indicate the subject number. In contrast, in OSWeb/JATOS, the subject number is randomly chosen (by default the number 0 or 1). It is therefore *not* guaranteed that you end up with an equal number of participants in each group.


    Do you see the difference? You therefore have two options:


    Option 1

    Set the order of the called "experimental_loop" to random. In this case there is guarantee of an exact match in number of participants (for example, you end up with 46 participants who first did the pitch version and then the word version vs 54 participants who did the blocks in the opposite order).

    Option 2

    Set the order of the aforementioned to sequential and make two identical versions of the task except that you manually change the order of the block type. (Do this only when you are completely happy with your experiment and only have to make this final change.)


    Hope this helps!


    Cheers,


    Lotje


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

  • Hi Lotje,

    thanks I will use your draft to create my versions and thanks for cleaning up the code, I found it awfully messy myself. regards

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