December 17, 2021 at 7:43 am #7626EliseParticipant
I implemented a SPR in which before half of the trials three memory words appear. To make the same trial structure possible for these two types of items, I created a timer element that ensures that either the memory words are shown for 3000ms or a blank screen is shown for 1ms:
newText("MemoryList",row.MemoryList) .print() , newTimer("wait", row.Timer) .start() .wait() , getText("MemoryList") .remove()
After the timer ends, the script should proceed to the fixation cross and dashed sentence. However, from time to time the script randomly stops before the fixation cross is shown. One cannot proceed then and has to abort the experiment. Thanks to the log in the debugger, I could understand that it seems like the wait command is not fulfilled such that it cannot proceed to the fixation cross:
[12:35:5] wait (Timer) Action command 'wait' running, params: [null] (newTrial: 30-experimental) [12:35:5] wait (Timer) Action command 'start' running, params: [null] (newTrial: 30-experimental)
This is the link to my experiment: https://farm.pcibex.net/r/izMMsc/
I would really appreciate your help on this.
EliseDecember 17, 2021 at 11:07 am #7627JeremyKeymaster
I can’t seem to reproduce the problem myself, but if you don’t want to include a Timer element for certain rows, simply use a different value like
NAin the “Timer” column and do this:
newText("MemoryList",row.MemoryList).print() , ( row.Timer=="NA" ? null : newTimer("wait", row.Timer).start().wait() ) , getText("MemoryList").remove()
This way you shouldn’t have any issues with ultra rapid timers
JeremyDecember 18, 2021 at 7:21 am #7628EliseParticipant
This is great solution! Thanks a lot!
- You must be logged in to reply to this topic.