﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Replacing a text item multiple times within a trial</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 28 Sep 2026 03:41:30 GMT</lastBuildDate><ttl>20</ttl><item><title>Replacing a text item multiple times within a trial</title><link>https://forums.millisecond.com/Topic27206.aspx</link><description>Hi there,&lt;br/&gt;I'm trying to display a counter that starts at 1 and goes up to (max) 60 at approximately 100 ms per number. I can't use a video because I need to end the trial when the counter gets up to a certain number (different per participant). Using the clock (stopwatch) element will take too long (will only advance in increments of 1 second).&lt;br/&gt;&lt;br/&gt;I am trying to do this using one text element (text.LevelCountUp) with multiple items (/items = ("1", "2") etc .&lt;br/&gt;Then, during the trial, I use the insertstimulustime command to try and present the numbers sequentially at a rate of 100 ms. Here is a short version.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CountUpPoints&amp;gt;&lt;br/&gt;/ ontrialbegin =[trial.CountUpPoints.clearstimulusframes();&lt;br/&gt;trial.CountUpPoints.insertstimulustime(picture.LevelUp, 0);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(1),100);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(2),200);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(3),300);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(4),400);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(5),500);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(6),600);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(7),700);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(8),800);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(9),900);]&lt;br/&gt;/timeout = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Needless to say it is not working. Is this because I can only present one unique item from a text element on each trial? Should I make 60 unique text elements and then set their onsettimes within the trial?&lt;br/&gt;I realise that I could run 60 trials selecting the next text item at the beginning of each trial (which would prob be more efficient coding wise) but then this means that I am creating a unique block, which makes integration at the &amp;lt;expt&amp;gt; level more complicated. &lt;br/&gt;Any thoughts appreciated on the best way forward.&lt;br/&gt;</description><pubDate>Tue, 28 May 2019 15:19:43 GMT</pubDate><dc:creator>pops</dc:creator></item><item><title>RE: Replacing a text item multiple times within a trial</title><link>https://forums.millisecond.com/Topic27216.aspx</link><description>&lt;br/&gt;I realised that I could just make one looping trial with the branch element at the end to repeat it so integration at the &amp;lt;block&amp;gt; and &amp;lt;expt&amp;gt; levels is actually very simple. So I now have one list of items, one text element and one trial - much more sensible! Thanks for the fast response.&lt;br/&gt;</description><pubDate>Tue, 28 May 2019 15:19:43 GMT</pubDate><dc:creator>pops</dc:creator></item><item><title>RE: Replacing a text item multiple times within a trial</title><link>https://forums.millisecond.com/Topic27210.aspx</link><description>&lt;div data-id="27206" class="if-quote-wrapper" unselectable="on" data-guid="1559046442923"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27206" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="27206" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="27206" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;pops - 5/27/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27206"&gt;&lt;div class="if-quote-message-margin"&gt;Hi there,&lt;br/&gt;I'm trying to display a counter that starts at 1 and goes up to (max) 60 at approximately 100 ms per number. I can't use a video because I need to end the trial when the counter gets up to a certain number (different per participant). Using the clock (stopwatch) element will take too long (will only advance in increments of 1 second).&lt;br/&gt;&lt;br/&gt;I am trying to do this using one text element (text.LevelCountUp) with multiple items (/items = ("1", "2") etc .&lt;br/&gt;Then, during the trial, I use the insertstimulustime command to try and present the numbers sequentially at a rate of 100 ms. Here is a short version.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CountUpPoints&amp;gt;&lt;br/&gt;/ ontrialbegin =[trial.CountUpPoints.clearstimulusframes();&lt;br/&gt;trial.CountUpPoints.insertstimulustime(picture.LevelUp, 0);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(1),100);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(2),200);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(3),300);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(4),400);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(5),500);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(6),600);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(7),700);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(8),800);&lt;br/&gt;trial.CountUpPoints.insertstimulustime(text.LevelCountUp.item(9),900);]&lt;br/&gt;/timeout = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Needless to say it is not working. Is this because I can only present one unique item from a text element on each trial? Should I make 60 unique text elements and then set their onsettimes within the trial?&lt;br/&gt;I realise that I could run 60 trials selecting the next text item at the beginning of each trial (which would prob be more efficient coding wise) but then this means that I am creating a unique block, which makes integration at the &amp;lt;expt&amp;gt; level more complicated. &lt;br/&gt;Any thoughts appreciated on the best way forward.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27206"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; Needless to say it is not working. Is this because I can only present one unique item from a text element on each trial?&lt;br/&gt;&lt;br/&gt;Yes, that's exactly right.&lt;br/&gt;&lt;br/&gt;&amp;gt; Should I make 60 unique text elements and then set their onsettimes within the trial?&lt;br/&gt;&lt;br/&gt;That would be the way to go.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 28 May 2019 05:27:53 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>