﻿<?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 4  » several quick questions</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 14 May 2026 11:25:48 GMT</lastBuildDate><ttl>20</ttl><item><title>several quick questions</title><link>https://forums.millisecond.com/Topic14262.aspx</link><description>Hi all, &lt;br/&gt;I've been browsing the forum but I still haven't found a solution for several little problems I am experiencing. I hope somebody will be able to help me out. &lt;br/&gt;&lt;br/&gt;First, I'd like to direct participants to either a block or another one as a function of their choice. They start by doing task 1 then task 2 and then, I'd like them to decide between 1 and 2 to further do it again as a function of their choice. So far I've tried to implement:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial choice&amp;gt;&lt;br/&gt;/ stimulusframes = [1=choice]&lt;br/&gt;/ validresponse = ("1", "2")&lt;br/&gt;/ responsetrial = ("k", task1)&lt;br/&gt;/ responsetrial = ("d", task2)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;slider choice&amp;gt;&lt;br/&gt;/ caption = "Please indicate the task you would like for Stage 3&lt;br/&gt;"&lt;br/&gt;/ labels = (&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "task1", "task2")&lt;br/&gt;/ range = (1, 2)&lt;br/&gt;/ slidersize = (60%, 5%)&lt;br/&gt;/ showtooltips = false&lt;br/&gt;&amp;lt;/slider&amp;gt;&lt;br/&gt;&lt;br/&gt;But this simply doesnt work. Also, I don't really know what to indicate in the design of the task. So far, it was&lt;br/&gt;&lt;br/&gt;&amp;lt;block task&amp;gt;&lt;br/&gt;/ trials = [1-2=instructions; 3-5=task1; 6=instructions; 7-9=task2; 10=choice &lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;But then I don't know what to write as the 11th step is depending on the choice. Is there a way to specify that it'll be either Task 1 or Task 2 here ?&lt;br/&gt;&lt;br/&gt;The second question I have is regarding the number of trials. In the example provided I can modify the number of trials by putting 3-5=task1 or 3-555=task1. I'd like to know if there is a way to restrict the length of a block to a fixed amount of time instead of using a specified number of trials. For example, I'd like them to fill as many items as they can in 2mn and then to switch to task 2. Is there a way to do that ?&lt;br/&gt;&lt;br/&gt;The final question I had was to know how to display a performance feedback on both tasks. Ideally, this would just present the sum of good answers (or an average percent) after each answer on task 1 and then the same on task 2 but this may be too complicated.&lt;br/&gt;&lt;br/&gt;Thanks for your help,&lt;br/&gt;Regards, &lt;br/&gt;Vincent.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 25 Sep 2014 14:17:30 GMT</pubDate><dc:creator>vpillaud</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14396.aspx</link><description>Nice!</description><pubDate>Thu, 25 Sep 2014 14:17:30 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14395.aspx</link><description>didnt think of displaying a screen first and then a slider within a same surveypage, I only tried to display it within the slider attributes. That works now, thanks.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 25 Sep 2014 14:14:52 GMT</pubDate><dc:creator>vpillaud</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14394.aspx</link><description>Well, that'll work just fine with what I outlined in my previous reply.&lt;br/&gt;</description><pubDate>Thu, 25 Sep 2014 13:58:44 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14393.aspx</link><description>I wanted to display a screenshot instead of using the caption command. Ideally, this would present a screenshot and the slider right below the screenshot (so all within the same screen).&lt;br/&gt;</description><pubDate>Thu, 25 Sep 2014 13:54:50 GMT</pubDate><dc:creator>vpillaud</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14392.aspx</link><description>&amp;lt;surveypage mypage&amp;gt;&lt;br/&gt;/ questions = [1=myimage; 2=myslider]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;image myimage&amp;gt;&lt;br/&gt;/ items = ("myscreenshot.jpg")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/image&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;slider myslider&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/slider&amp;gt;&lt;br/&gt;&lt;br/&gt;Plus: I'm not entirely sure what exactly you mean by "display the image in the slider question", but you cannot display an image /in/ a slider.&lt;br/&gt;</description><pubDate>Thu, 25 Sep 2014 13:52:08 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14391.aspx</link><description>Hm, I'm stuck on this one- &lt;br/&gt;&lt;br/&gt;So far, I've got a surveypage that displays a question labeled as "choice", the latter is set up as a slider question.&lt;br/&gt;I used the &amp;lt;picture&amp;gt; command to display the previous screenshots (they were then defined in a related &amp;lt;item&amp;gt; command); i was not using the image command as you were suggesting (but I think they work in a similar way).&lt;br/&gt;&lt;br/&gt;The remaining problem is how to display the image in the slider question since it requires some text in the caption and putting "choice.png" instead didnt work. I haven't been able to find anything relevant by browsing the question's attributes. &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 25 Sep 2014 13:39:49 GMT</pubDate><dc:creator>vpillaud</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14390.aspx</link><description>Set up an &amp;lt;image&amp;gt; element and display it via the &amp;lt;surveypage&amp;gt;'s /questions attribute -- works the same as the &amp;lt;caption&amp;gt; element.&lt;br/&gt;</description><pubDate>Thu, 25 Sep 2014 11:41:29 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14389.aspx</link><description>that would be faster this way indeed, thanks. Can I still present a screenshot above the slider instead of writing some text ? (this is just to make the instructions more visible). &lt;br/&gt;Couldn't find another way to proceed apart from the "text" command that need to be put in the "caption"...&lt;br/&gt;</description><pubDate>Thu, 25 Sep 2014 11:22:13 GMT</pubDate><dc:creator>vpillaud</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14388.aspx</link><description>You don't need to fiddle around with branching or some screenshot. All you need to do is change the button's label via the &amp;lt;surveypage&amp;gt;'s /finishlabel attribute.&lt;br/&gt;</description><pubDate>Thu, 25 Sep 2014 11:13:24 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14387.aspx</link><description>Hi, &lt;br/&gt;another problem appeared: while displaying the slider where participants have to decide between task 1 and task 2 for stage 3, the button that appears on the screen to validate the choice is labelled "finish". This is problematic as the study is not over yet..&lt;br/&gt;&lt;br/&gt;To cope with this, I thought of displaying a screenshot instead of a slider (as this would remove the button) but now, the branching does not work anymore.&lt;br/&gt;The command line was:&lt;br/&gt;/branch = [if(slider.choice.response=="1") block.task1instructions]&lt;br/&gt;&lt;br/&gt;As a reminder, a slider was displayed in a surveypage named as "choice" originally. I've now removed this surveypage and replaced it by a trial page named as "choice" where a screenshot is presented. I've specified two validresponse keys in order to branch depending on the key that will be pressed.&lt;br/&gt;&lt;br/&gt;Can you please tell me what to write when the branching is depending on a trial ? Ive tried trial.choice.response but this didn't work.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 25 Sep 2014 10:56:42 GMT</pubDate><dc:creator>vpillaud</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14315.aspx</link><description>good idea. thanks a million for being that responsive.&lt;br/&gt;</description><pubDate>Mon, 22 Sep 2014 10:35:42 GMT</pubDate><dc:creator>vpillaud</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14312.aspx</link><description>/branch to one of two &amp;lt;block&amp;gt;s presenting the applicable instructions based on the slider-choice &lt;br/&gt;&lt;br/&gt;&amp;lt;block choice&amp;gt;&lt;br/&gt;/trials = [1= choice]&lt;br/&gt;/branch = [if(slider.choice.response=="1") block.task1instructions]&lt;br/&gt;/branch = [if(slider.choice.response=="2") block.task2instructions]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;From the respective instructions-&amp;lt;block&amp;gt;, /branch to the applicable task-&amp;lt;block&amp;gt;:&lt;br/&gt;&lt;br/&gt;&amp;lt;block task1instructions&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [block.task1]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block task2instructions&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ branch = [block.task2]&lt;br/&gt;&amp;lt;/block&amp;gt;</description><pubDate>Mon, 22 Sep 2014 08:33:46 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14311.aspx</link><description>the bgstim command worked perfectly, thats really nice. &lt;br/&gt;&lt;br/&gt;Concerning the second point I raised, I arrived to the same conclusion as you did (which was adding a block with only one stimulus than switching to the timed block). In fact, there remains a problem here:&lt;br/&gt;They decide between task 1 and task 2 and are successfully directed to one of both accordingly but I don't know how to add an instruction screen that won't be timed and that still will vary as a function of their choice.&lt;br/&gt;&lt;br/&gt;So far, the branching is:&lt;br/&gt;&amp;lt;block choice&amp;gt;&lt;br/&gt;/trials = [1= choice]&lt;br/&gt;/branch = [if(slider.choice.response=="1") block.task1]&lt;br/&gt;/branch = [if(slider.choice.response=="2") block.task2]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;and the experiment branching is &lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1=instructions; 2=task1; 3=task2; 4=choice; 5=demo...]&lt;br/&gt;&lt;br/&gt;I dont know if I should add a block in the &amp;lt;expt&amp;gt; (but if then, how to make it variating as a function of the decision ?) or in the branching of the choice, by writing /branch = [if(slider.choice.response=="1") block.screen; block.task1] (which doesnt seem to work so far..)&lt;br/&gt;&lt;br/&gt;Is there a way to deal with this ?&lt;br/&gt;&lt;br/&gt;Thanks a million for the help you provided so far, &lt;br/&gt;that has really been helpful.&lt;br/&gt;Vince.&lt;br/&gt;</description><pubDate>Mon, 22 Sep 2014 08:17:22 GMT</pubDate><dc:creator>vpillaud</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14279.aspx</link><description>The &amp;lt;clock&amp;gt; element is a *stimulus* element just like &amp;lt;text&amp;gt;, &amp;lt;picture&amp;gt;, &amp;lt;video&amp;gt;, etc.&lt;br/&gt;&lt;br/&gt;You cannot display stimuli via /onblockbegin or the like. You do so via a &amp;lt;block&amp;gt;'s /bgstim or &amp;lt;trial&amp;gt; elements' /stimulustimes or -frames.&lt;br/&gt;&lt;br/&gt;As for your second question: Set up a &amp;lt;block&amp;gt; that runs a single &amp;lt;trial&amp;gt; requiring a spacebar response. Run that block before the "actual" block.&lt;br/&gt;</description><pubDate>Thu, 18 Sep 2014 15:48:24 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14278.aspx</link><description>excellent, so far everything worked well.&lt;br/&gt;&lt;br/&gt;I thought I'd add a clock in some of the blocks (to allow participants to know the remaining time). I've tried /onblockbegin= &lt;span class="st"&gt;[&lt;span class="st"&gt;"&amp;lt;%clock.timer.remainingtime%&amp;gt;"] in the block where I want to display a clock and specified the clock attributes by such code elsewhere&lt;br/&gt;&amp;lt;clock timer&amp;gt;&lt;br/&gt;/mode = timer&lt;br/&gt;/resetrate = block&lt;br/&gt;/timeout = 10000&lt;br/&gt;/erase = false&lt;br/&gt;/txcolor = block&lt;br/&gt;/position = (80%,20%)&lt;br/&gt;/format = "mm:ss"&lt;br/&gt;&amp;lt;/clock&amp;gt;&lt;br/&gt;&lt;br/&gt;but this doesnt display anything.... Also, I'd ideally would like to display a screen beforehand ("the task will start by pressure the SPACEBAR"), and then the countdown clock to start (and then to timeout). &lt;br/&gt;&lt;br/&gt;Can you please indicate me a way to proceed ?&lt;br/&gt;&lt;br/&gt;Thanks so much for your previous answer.&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;</description><pubDate>Thu, 18 Sep 2014 15:40:17 GMT</pubDate><dc:creator>vpillaud</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14264.aspx</link><description>thanks for this quick answer. Let's try this out !&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 17 Sep 2014 15:24:12 GMT</pubDate><dc:creator>vpillaud</dc:creator></item><item><title>RE: several quick questions</title><link>https://forums.millisecond.com/Topic14263.aspx</link><description>#1a: A &amp;lt;slider&amp;gt; is not a stimulus and thus cannot be displayed via a &amp;lt;trial&amp;gt;'s /stimulusframes. You need to put the &amp;lt;slider&amp;gt; on a &amp;lt;surveypage&amp;gt; (which is in itself a special kind of &amp;lt;trial&amp;gt;) by using its /questions attribute.&lt;br/&gt;&lt;br/&gt;#1b: Run the &amp;lt;surveypage&amp;gt; via a &amp;lt;block&amp;gt; at the 11th position. From that &amp;lt;block&amp;gt; /branch to either &amp;lt;block task1&amp;gt; or &amp;lt;block task2&amp;gt; depending on the &amp;lt;slider&amp;gt; response given. A simplified example summing up 1a and 1b:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=task1block; 2=task2block; 3-6=choiceblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block task1block&amp;gt;&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block task2block&amp;gt;&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%script.currentblock%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block choiceblock&amp;gt;&lt;br/&gt;/ trials = [1=choicepage]&lt;br/&gt;/ branch = [if(slider.choicequestion.response=="1") block.task1block]&lt;br/&gt;/ branch = [if(slider.choicequestion.response=="2") block.task2block]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage choicepage&amp;gt;&lt;br/&gt;/ questions = [1=choicequestion]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;slider choicequestion&amp;gt;&lt;br/&gt;/ labels = ("Do Task 1", "Do Task 2")&lt;br/&gt;/ range = (1,2)&lt;br/&gt;&amp;lt;/slider&amp;gt;&lt;br/&gt;&lt;br/&gt;#2: You can specify a /timeout attribute at the &amp;lt;block&amp;gt;-level, which will determine the maximum allowable time for the block. If the block runs out of trials prior to the timeout, it will terminate. Thus you need to make sure the block runs enough trials.&lt;br/&gt;&lt;br/&gt;#3: For simple feedback, you can use the &amp;lt;block&amp;gt; element's /blockfeedback attribute, details for which you can find in the documentation. For more elaborate feedback, set up &amp;lt;values&amp;gt;, &amp;lt;expressions&amp;gt;, etc. to calculate your performance statistics of choice and display the results at the end of the block either via an instructions &amp;lt;page&amp;gt; (/postinstructions) or standard &amp;lt;text&amp;gt;, &amp;lt;trial&amp;gt; etc. elements (see e.g. &lt;a href="http://www.millisecond.com/forums/FindPost14025.aspx"&gt;http://www.millisecond.com/forums/FindPost14025.aspx&lt;/a&gt; ).&lt;br/&gt;</description><pubDate>Wed, 17 Sep 2014 14:52:51 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>