Millisecond Forums

How to make /resetinterval work on trials?

https://forums.millisecond.com/Topic15178.aspx

By Blackadder - 12/10/2014

Hi All,
as I understand from the documentation, the "/ resetinterval" property defines, after how many blocks a counter is reset. So if a counter was defined as

<counter counterNAME>
...
/ resetinterval = 1
</counter>


and the counter was used in a <picture> element do select elements from an item, then
with a block defined as

<block blockNAME>
...
/ trials = [1-32=trialNAME]
</block>


then the counter would be reset after the execution of all 32 trials (or when all elements from the counter have been drawn).

Is this correct? And if so, am I correct that a "counter.counterNAME.reset" in the "/ ontrialbegin" property of the trial is the way to go if you want to reset a counter an a per-trial basis?

Best wishes, Malte
By Dave - 12/10/2014

Yes.
By Blackadder - 12/12/2014

THX!