Howdy, Stranger!

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

Supported by

How to minimise delay at end of sequence in javascript

Hi there,

I was hoping to get some advice regarding reduction of a slight delay that occurs at the end of my sequences.

My experiment consists of a series of triplets being presented within blocks. So in a given block, I have a sequence called images and within that sequence there are three sub-sequences (E1 to E3seq). This is set up such that I can present these trials so that three stimuli always occur together but then at the end of each triplet it will move onto one of the other triplets.

https://forum.cogsci.nl/uploads/448/MYE6H368QIVO.png There was an error displaying this embed.


The problem is when it gets to the end of E3seq it takes a very slight (but importantly noticeable) delay to load the next set of three trials.

Is there a way to get OpenSesame to load all of the trials in a given block (there are 24 triplets so 72 trials in a block)? I need to use javascript as I want my task to run online, so any inline scripts would have to use javascript. I know that an alternative is to simply list all the trials in order in a loop - I can do that if its the only solution but for the purposes of analysis and introducing randomisation I would prefer to keep it the way I have set it up!

Thanks in advance for any help.

Regards,

Matthew

Comments

  • Here is the experiment in case that is helpful to see how the task is laid out (I had to remove all the images to get it to upload - apologies!).

    Thanks,

    Matthew

  • Hi Matthew,

    Not sure whether this helps, but you could get rid of the three individual sub-sequences and put everything into a single sequence (i.e. merging E1-E3seq). Also that extra loop around the loggers is weird (and should probably go.

    The general problem (for you) is that sequences are processed in 2 phases: prepare and run, first all the items of a sequence are prepared, and then all of them are run. This has the advantage that the run phases of the individual items (what is seen by the participant) is temporally super tight. However, when the experiment switches to the next sequence, it first need to prepare everything again.

    That being said, the timing between sequences will always be worse compared to the timing within sequences, and for the bulk of experimental psychology that is fine. The only solution is to put everything into a single sequence (or take care of the timing yourself by using inline_scripts). In how far this is possible for you, I can't really say. For that I don't understand your script and your goal well enough.

    Hope this helps,

    Eduard

    Buy Me A Coffee

  • Hi Eduard,

    Thanks for this. My goal is to ensure that the timing between presentation of stimuli is consistent (across and within these sequences). I think you're probably right that the best solution is to put everything into a single sequence. I can't think of many appropriate inline_scripts I could write that would speed up timing between these sequences and perhaps its more elegant to get rid of these E1-E3 seq anyway.

    Thanks!

    Matthew

    P.S. re the extra loop around the loggers: Yes this is weird but I read somewhere else that this is the only way to get the experiment to pass the compatibility check for running the task online whilst using multiple linked loggers. Perhaps there is a more efficient/elegant way to do this but if I take the loops out the exp fails the compatibility check.

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