﻿<?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  » Port triggered from Random displayed images</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 13 May 2026 19:14:56 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10681.aspx</link><description>&lt;p&gt;[quote]When spacebar is hit during test1 nothing is broadcast.[/quote]&lt;/p&gt;
&lt;p&gt;Please see the documentation for the /responsetime attribute. The above is the default, expected behavior.&lt;/p&gt;
&lt;p&gt;[quote]When hit during test2 it broadcasts the corresponding responsemessage port.[/quote]&lt;/p&gt;
&lt;p&gt;That is expected, too. In addition, please see the documentation for the /responseinterrupt attribute.&lt;/p&gt;</description><pubDate>Mon, 17 Jun 2013 09:10:30 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10680.aspx</link><description>&lt;p&gt;&amp;lt;trial test&amp;gt;&lt;br /&gt;/ stimulustimes = [0=test1, test1Port; 200=test2, test2Por]&lt;br /&gt;/ validresponse = (" ")&lt;br /&gt;/ correctresponse = (" ")&lt;br /&gt;/ responsemessage = (" ", broadPort, 50)&lt;br /&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;
&lt;p&gt;When spacebar is hit during test1 nothing is broadcast. When hit during test2 it broadcasts the corresponding responsemessage port.&lt;/p&gt;</description><pubDate>Mon, 17 Jun 2013 09:06:31 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10679.aspx</link><description>&lt;p&gt;[quote]I have 2 items in stimulustime for a trial&lt;br /&gt;the port is triggered when spacebar is pressed. It is only displaying for the second item being displayed.[/quote]&lt;/p&gt;
&lt;p&gt;I fail to understand what exactly the above is supposed to mean. Please be more specific, i.e., provide a clearer description (what is / isn't sent; what's the desired vs. the observed behavior) as well as a concrete, minimal example w/ code.&lt;/p&gt;
&lt;p&gt;In case you are referring to signals sent via /responsemessage or the like, no, there is no way to record those.&lt;/p&gt;</description><pubDate>Mon, 17 Jun 2013 08:46:03 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10678.aspx</link><description>&lt;p&gt;Reference to older question.&lt;/p&gt;
&lt;p&gt;I have 2 items in stimulustime for a trial&lt;br /&gt;the port is triggered when spacebar is pressed. It is only displaying for the second item being displayed.&lt;/p&gt;
&lt;p&gt;Is there something I need to reference so it is recorded both times?&lt;/p&gt;</description><pubDate>Mon, 17 Jun 2013 08:36:19 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10676.aspx</link><description>&lt;p&gt;Well, yes. Simply send another &amp;lt;port&amp;gt; with 00000000 at the desired time after the signal via the &amp;lt;trial&amp;gt;'s /stimulustimes:&lt;/p&gt;
&lt;p&gt;http://www.millisecond.com/forums/Topic5755.aspx#5755&lt;/p&gt;</description><pubDate>Mon, 17 Jun 2013 08:13:48 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10675.aspx</link><description>&lt;p&gt;Is there a way to set a pulse width in inquisit for the TTL port? Like I want it to display the number then end with a zero for the pulse after so many ms.&lt;/p&gt;</description><pubDate>Mon, 17 Jun 2013 08:10:28 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10661.aspx</link><description>&lt;p&gt;See http://www.millisecond.com/forums/Topic1721.aspx.&lt;/p&gt;</description><pubDate>Thu, 13 Jun 2013 06:04:12 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10660.aspx</link><description>&lt;p&gt;That worked thank you.&lt;br /&gt;&lt;br /&gt;Last questions:&lt;/p&gt;
&lt;p&gt;Is there a way to set it up so that when a valid response is triggered the port will spit out a response?&lt;/p&gt;</description><pubDate>Thu, 13 Jun 2013 05:52:32 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10653.aspx</link><description>&lt;p style="padding-left: 30px;"&gt;Suppose I have a &amp;lt;text&amp;gt; element with two items, A and B. I want to sent a &amp;lt;port&amp;gt; signal, 00000001 for A and 00000010 for B:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;trial mytrial&amp;gt;&lt;br /&gt;/ stimulusframes = [1=mytext, myport]&lt;br /&gt;[...]&lt;br /&gt;&amp;lt;/trial&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;text mytext&amp;gt;&lt;br /&gt;/ items = ("A", "B")&lt;br /&gt;/ select = noreplace&lt;br /&gt;&amp;lt;/text&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;port myport&amp;gt;&lt;br /&gt;/ items = ("00000001", "00000010")&lt;br /&gt;/ select = text.mytext.currentindex&lt;br /&gt;&amp;lt;/port&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The same applies when using a &amp;lt;picture&amp;gt; instead of &amp;lt;text&amp;gt;.&lt;/p&gt;</description><pubDate>Tue, 11 Jun 2013 12:25:07 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10652.aspx</link><description>&lt;p&gt;I will be associating different &amp;lt;port&amp;gt; items with different pictures. &lt;/p&gt;
&lt;p&gt;My trial pulls from the pictures listed in &amp;lt;picture trigg&amp;gt; which is from a &amp;lt;item trigg&amp;gt; list.&lt;/p&gt;

&lt;p&gt;The block takes that info and randomizes the pictures being displayed.&lt;br /&gt;&lt;br /&gt;How would I go about making the picture that is displayed send the item in &amp;lt;port&amp;gt;?&lt;/p&gt;</description><pubDate>Tue, 11 Jun 2013 12:22:51 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10651.aspx</link><description>&lt;p&gt;[quote]So I would need to associate multiple &amp;lt;port&amp;gt; Since there would be 5 other ports sending different data.[/quote]&lt;/p&gt;
&lt;p&gt;No. A &amp;lt;port&amp;gt; can have multiple /items just like a &amp;lt;text&amp;gt; or &amp;lt;picture&amp;gt;.&lt;/p&gt;</description><pubDate>Tue, 11 Jun 2013 12:17:24 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10650.aspx</link><description>&lt;p&gt;The TTL signals will be different for groupings of 2 images in the 10 items.&lt;/p&gt;
&lt;p&gt;The trial I have does:&lt;br /&gt;&lt;br /&gt;&amp;lt;trial trigg&amp;gt;&lt;br /&gt;/ stimulustimes = [0=trigg]&lt;br /&gt;/ trialduration = 1700&lt;br /&gt;/ validresponse = ("W")&lt;br /&gt;/ correctresponse = ("W")&lt;br /&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;
&lt;p&gt;So I would need to associate multiple &amp;lt;port&amp;gt; Since there would be 5 other ports sending different data.&lt;/p&gt;</description><pubDate>Tue, 11 Jun 2013 12:14:41 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10649.aspx</link><description>&lt;p&gt;(1) If the TTL signal is *always the same* as in your example, there is no need for any selection stuff at all. Simply have your &amp;lt;trial&amp;gt; "display" it along with the picture.&lt;/p&gt;
&lt;p&gt;(2) Have you given http://www.millisecond.com/support/docs/v4/html/howto/howtopairs.htm a look? If so, it should be clear how to define the dependency between elements.&lt;/p&gt;</description><pubDate>Tue, 11 Jun 2013 12:05:49 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10648.aspx</link><description>&lt;p&gt;&amp;lt;item trigg&amp;gt;&lt;/p&gt;
&lt;p&gt;there are 10 pics here&lt;/p&gt;
&lt;p&gt;/1 = "Img/muffins.jpg" &amp;lt;-- example&lt;/p&gt;
&lt;p&gt;&amp;lt;/item&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;picture trigg&amp;gt;&lt;/p&gt;
&lt;p&gt;/ items = trigg&lt;/p&gt;
&lt;p&gt;&amp;lt;/picture&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;port ptrigg&amp;gt;&lt;/p&gt;
&lt;p&gt;/ port = lpt1&lt;/p&gt;
&lt;p&gt;/ subport = data&lt;/p&gt;
&lt;p&gt;/ items = ("00000001")&lt;/p&gt;
&lt;p&gt;/ select = ?????&lt;/p&gt;
&lt;p&gt;&amp;lt;/port&amp;gt;&lt;/p&gt;


&lt;p&gt;What needs to be where?&lt;/p&gt;</description><pubDate>Tue, 11 Jun 2013 12:00:12 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10647.aspx</link><description>&lt;p&gt;[quote]So if I were to do a&lt;br /&gt;/ select = picture.trigg&lt;br /&gt;&lt;br /&gt;What would be required for the first image?[/quote]&lt;/p&gt;
&lt;p&gt;Unfortunately this example is meaningless without context. In general: Your &amp;lt;picture&amp;gt; elements comprise a number of /items. So do your &amp;lt;port&amp;gt; elements. You'll want to have the "item" (i.e. TTL signal) in the &amp;lt;port&amp;gt; depend on the item of the &amp;lt;picture&amp;gt;. Exactly that you'll find covered in the documentation topic I mentioned, only with &amp;lt;text&amp;gt; elements.&lt;/p&gt;</description><pubDate>Tue, 11 Jun 2013 11:55:09 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10646.aspx</link><description>&lt;p&gt;So if I were to do a&lt;br /&gt;/ select = picture.trigg&lt;br /&gt;&lt;br /&gt;What would be required for the first image?&lt;/p&gt;</description><pubDate>Tue, 11 Jun 2013 11:49:16 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10645.aspx</link><description>&lt;p&gt;Since &amp;lt;port&amp;gt; elements are essentially equivalent to all other stimulus elements such as &amp;lt;text&amp;gt; or &amp;lt;picture&amp;gt;, the "How to present stimulus pairs" topic in the documentation should answer your question.&lt;/p&gt;</description><pubDate>Tue, 11 Jun 2013 11:39:56 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>Port triggered from Random displayed images</title><link>https://forums.millisecond.com/Topic10644.aspx</link><description>&lt;p&gt;I have a couple different images set up in an item list named trigg. I have a trial that will display the picture for a certain duration. The block will add one to the current target list so it will cylce through until done.&lt;/p&gt;

&lt;p&gt;What I am trying to do is get it so that the 10 specific images in the 30 will trigger a port when displayed. There are 2 images for each port because they send a different data output.&lt;/p&gt;

&lt;p&gt;Is there any way to get this to work. Like an if statement/ condition in the Block?&lt;/p&gt;</description><pubDate>Tue, 11 Jun 2013 11:37:25 GMT</pubDate><dc:creator>Lostcode</dc:creator></item></channel></rss>