Tagged: time units
May 21, 2020 at 4:46 pm #5296
Hi, I am new to pcibex. Following your tutorial and after watching your recent Webinar, I managed to create a simple semantic priming study (200 trials). However, I want to confirm the time units for stimulus duration and for the reaction times. When I type newTimer(300), can I assume that this is exactly 300 msec? Also, when I subtract the EventTime of one event minus the EventTime of previous one, can I assume that the result is in milliseconds?
EnriquetaMay 21, 2020 at 6:18 pm #5298
Chances are it won’t be exactly 300ms, because performance varies with different hardware and software configurations. Timer elements periodically check the browser’s current timestamp, usually 60 times per second, generally matching the display refresh rate. So running a 300ms timer will effectively take between 300 and 316ms under normal circumstances.
Yes, the EventTime values are also expressed in milliseconds, and subtracting two of them will accordingly tell you how many milliseconds passed between the two reported events.
JeremyMay 21, 2020 at 6:40 pm #5299
Thanks a lot Jeremy, both for your prompt response and for the information provided.
One more thing appeared that you may have a suggestion for. Right now I have the Sequence( “Intro”, “Ready” , randomize(“Trials”) , “Thanks” ) and it is working great. However, this does not allow any breaks in the middle of the 200 (randomized) trials. I know how to add Timers to add breaks BETWEEN sections of my sequence but I don’t know how to insert a break (within “Trials”) after every 40 trials. In other programs I have used things like ‘counters’ and I imagine that something like that can be added but, how can I make sure that “Trials” presents 40 trials, gives a break (with the participant pressing a button when they are ready to continue) and then continues with the next 40 without losing track of which ones have been presented so far?
Finally, in trying to find help, pcibex suggests that I consult the Ibex manual but when I click on the link provided, it fails to show me the manual.
EnriquetaMay 21, 2020 at 8:19 pm #5301
Thank you for spotting the broken link, it looks like Alex Drummond removed the PDF version of the Ibex manual.
You can use a global Var element to keep track of a counter. Add this at the beginning of your template trials:
newVar("counter", 0).global().set(v=>v+1) .test.is(v=>v%40==0) .success( newButton("Take a break").print().log().wait().remove() ) ,
You must be logged in to reply to this topic.