Howdy, Stranger!

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

Supported by

Populating Loop cells from file

I have a program that populates loop-object fields from a csv file. When run "within browser" in OpenSesame, it works fine. When run through Jatos, the program hangs at the initial "loading experiment" page. Tested with an identical version in which the loop field values are hard coded within OpenSesame, and it works fine in Jatos, so there seems to be a limitation in using the file reference.

Any workaround to avoid this problem?

The goal of using the file reference is to avoid limitations on complex counterbalancing in OSWEB/JATOS. The plan was to use a different programming environment to do the counterbalancing and simply generate subject-specific lists of all the trial-level values (variable values and image files), with the appropriate loop file loaded for each subject based on subject number.

Thanks in advance,

--Andrew

Comments

  • Hi Andrew,

    If you could tell us what error messages, if any, you see in the console, we'll figure out where the problem is.

    But also, you can add a counterbalancing script in JATOS if you're willing to write a bit of JavaScript. We have some example studies in the JATOS docs that can serve as a good starting point.

    Best

    Elisa

  • Hi Andrew,

    What is the file path you are using for your file?

    Best,

    Kristian

  • edited April 2020

    Thanks for the replies. This is a bit of an odd situation, because I want to get an existing experiment up and running quickly online without having to re-do all the counterbalancing script that we originally wrote in VisualBasic/E-prime. But, yes, the next step is to just re-do that code in JS if we can't get this kludgy workaround to work.

    And, apologies in advance for trying to do this with minimal working knowledge of OpenSesame or JS.

    So, I have simply been testing whether it is possible to use the "file" option in a loop object to specify the trial structure of the experiment on a subject-by-subject basis. To do that test, I first started with a visual search experiment that Sebastiaan sent me as JATOS-ready that I knew would work. I've uploaded it to the test server as "Visual Search Original". Of course, it runs perfectly.

    Then I have made one change to that OpenSesame program in the "block_loop" object, changing the method for populating the loop object fields to "file", saving the original contents of the loop object to a csv file, and then including the csv file in the file pool

    Runs perfectly fine within OpenSesame itself, even when run in a browser.

    I've uploaded this modified version to the test server as "Visual Search CSV".

    When running through JATOS, however, it hangs at the "loading experiment" screen:

    So, yes, probably a path problem, but its not clear to me how OpenSesame defines the path for files associated with loop objects.

    Thanks,

    --Andrew

  • Hi Andrew,

    I think your problem may be related to the fact that you use a 'file' as source. As described in the OSWeb manual, using files to populate loop cells is not supported (https://osdoc.cogsci.nl/3.2/manual/osweb/; see 'Supported functionality' section). If I am right, this is then more an OSWeb issue than a Jatos problem.

    Best,

    Simon

  • Thanks, that's it.

  • Glad that I found this post with the link to the osweb manual, as I've just run into the same problem, and has not noticed that 'except' in the 'supported' details. I was using files to avoid the bug where loop table column names are alphabetized but the rest of the rows are left alone, making garbage of the table. I will have to go back and paste my files into the loop template, having first made sure the columns are already in alphabetical order I suppose. Pity the compatability check doesn't spot this one as

  • Hi @Andrew,

    (ping @elisa @kri @GorinS @jmplym)

    As GorinS pointed out, the problem relates to the fact that not all functions and objects in OS work in OSWeb (the problem is not with JATOS). I ran into the same problem (in my experiments, the sequence of trials must usually follow fairly complex rules that may not even be practical to implement in Javascript because sometime the algorithm can't find a solution on the fly). Anyway, I started to explore an alternative solution to reading stimuli sequences from files that would work in OSWeb (it basically relies on creating memory arrays that are equivalent to the files, and reading from these). I described it here: https://forum.cogsci.nl/discussion/7081/a-method-to-randomly-select-a-stimulus-list-for-online-experiments-javascript-jatos-compatible#latest

    It is a little cumbersome, for sure, but I share it (as is) in case it can help others. Hopefully, the developers of OSWeb will work our a way to authorize reading stimuli sequences from files in a future update (fingers crossed) - that and allowing the use (and extension) of the "constrain" command in the loop's script.

    There was a recent post by Sebastiaan describing a solution using Javascipt to present images or sounds from a URL: https://forum.cogsci.nl/discussion/7148/loading-external-stimuli-images-and-sound-in-an-osweb-experiment#latest. I wonder whether this kind of solution may possibly also be adapted to read from a csv file and posted the question. I don't have the Javascript expertise to solve that one. Hopefully someone out there can...

    Fabrice.

    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