Howdy, Stranger!

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

Supported by

Customise trigger value in a loop


I am designing an EEG experiment on OpenSesame, and I am having trouble with getting some of my triggers to send.

What I am trying to do is send a trigger after a rating scale value has been provided, and would like the value of the trigger to depend on the value that was provided in the rating scale. The issue seems to be that the rating scale value isn't saving, meaning that the trigger equation is incomplete and the trigger doesn't get sent.

This is all happening within a sequence, where music is being played, followed by the rating scale, followed by a trigger indicating that a scale had just been completed

Here is the inline script code I are using to send the trigger:

global io

var.condition = self.get("condition")

var.rating_Q1 = self.get("rating_Q1")

trigger= var.condition + 3 + var.rating_Q1

port = 0x378

pport.Out32(port, trigger)

'condition' is a predefined variable whose value changes depending on which condition it loops through from an Excel sheet (this works fine).

The variable 'rating_Q1' doesn't appear to be saving the value provided in the rating scale, and instead appears as a NoneType. It was defined in a form base plugin as follows:

widget 0 5 6 1 rating_scale nodes="1;2;3;4;5;6" var=rating_Q1

Does anyone know why the rating variable is not saving the value? Is it because everything is happening within a loop sequence?

I hope this question makes sense. I'm happy to provide more information

I am using a Windows computer, OpenSesame version 3.3.8.

Thanks in advance!




  • Hi @Sarah ,

    Did you make sure that the Python inline script is put in the Run_tab of an inline_script item that appears after the form_base item?

    If this doesn't solve the issue, could you upload your experiment here?



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

  • Hi @lvanderlinden ,

    Thank you for your quick response.

    We had already tried both of what you suggested and we still get the same issue. I can't attach the experiment because I get a 413 error, so I've emailed it to you.

    You will see that we actually have 2 questions in our second loop (rating_Q1 and rating_Q2), both of which have a similar trigger equation to what I mentioned before. I should also mention that the trigger for Q1 did sometimes work and other times stopped working (we can't figure out why), but the trigger for Q2 never worked.

    Thank you for your help!



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 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