Howdy, Stranger!

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

Supported by

How to replace exp.set in OS4?

Hello,

I have a bit of an urgent problem. We ran an experiment using an older version of OS, which was programmed by a former colleague. Long story short: the laptop was stolen and on the new lab computers, we have OS4 installed. The experiment does not seem to be fully compatible with OS4 and I'm posting here to see if anyone can help me fix the problem (because my former colleague is no longer available):

The problem is that exp.set does not seem to be supported anymore in OS4.

We use an inline script as first item in a sequence, which specifies:

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

exp.set('sound_1', examples_y[0])

exp.set('sound_2', examples_y[1])

exp.set('sound_3', examples_y[2])

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

examples_y are various sound files specified in another inline script preceding the sequence.


Can anyone help me with this?


Thank you very much in advance!


Antje

Comments

  • Hi @Antje,

    In OpenSesame 4.0, exp.set() is no longer needed because variables are handled differently. Instead, you should use var to store them properly, like this:

    var.sound_1 = examples_y[0]

    var.sound_2 = examples_y[1]

    var.sound_3 = examples_y[2]

    This should work the same way, and OpenSesame should correctly track the variables throughout the experiment.

    Let me know if you run into any issues.

    Claire

  • Dear @cvanbuck ,

    Thank you so much, it works. However, there is another problem now. After a couple of trials, the experiment crashes and I get the following error:

    Error: ExperimentProcessDied

    The experiment process seems to have died as the result of an unknown problem. This should not happen! This error occurred in the unknown phase of item unknown.

    Would you have any idea how to address this? Given that the error is so unspecific, I'm attaching my script here. I hope that's ok.

    Best wishes,


    Antje

    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.
    File
    ApSon_Exposure_oe-ortho_V3.osexp
    847.75 KB


  • Hi @Antje,

    Glad to hear it worked!

    Regarding your new issue, I couldn't reproduce the exact same error, but the experiment did crash for me after a few trials (18, to be precise).

    Switching the backend from legacy to expyriment solved the issue on my end—could you try that and see if it works for you as well?

    Let me know how it goes!

    Claire

  • Dear @cvanbuck,

    Thank you so much for checking. I also tried changing the backends. With xpyriment, it also crashes (but slightly later, always after 98 trials), and with psycho, it does not work at all.

    Any ideas what might be causing this?

    Thank you so much,


    Antje

  • @Bob To me this sounds like it could be a memory issue with the low-latency plugins. Any ideas?

  • Dear @sebastiaan ,

    In case it helps, I would like to add that we did not experience this problem in OpenSesame 3.9.

    Thank you so much,

    Antje

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