Port triggered from Random displayed images


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K

When spacebar is hit during test1 nothing is broadcast.


Please see the documentation for the /responsetime attribute. The above is the default, expected behavior.


When hit during test2 it broadcasts the corresponding responsemessage port.


That is expected, too. In addition, please see the documentation for the /responseinterrupt attribute.


Lostcode
Lostcode
Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)
Group: Forum Members
Posts: 29, Visits: 1

<trial test>
/ stimulustimes = [0=test1, test1Port; 200=test2, test2Por]
/ validresponse = (" ")
/ correctresponse = (" ")
/ responsemessage = (" ", broadPort, 50)
</trial>


When spacebar is hit during test1 nothing is broadcast. When hit during test2 it broadcasts the corresponding responsemessage port.


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K

I have 2 items in stimulustime for a trial
the port is triggered when spacebar is pressed. It is only displaying for the second item being displayed.


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.


In case you are referring to signals sent via /responsemessage or the like, no, there is no way to record those.


Lostcode
Lostcode
Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)
Group: Forum Members
Posts: 29, Visits: 1

Reference to older question.


I have 2 items in stimulustime for a trial
the port is triggered when spacebar is pressed. It is only displaying for the second item being displayed.


Is there something I need to reference so it is recorded both times?


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K

Well, yes. Simply send another <port> with 00000000 at the desired time after the signal via the <trial>'s /stimulustimes:


http://www.millisecond.com/forums/Topic5755.aspx#5755


Lostcode
Lostcode
Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)
Group: Forum Members
Posts: 29, Visits: 1

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.


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K

See http://www.millisecond.com/forums/Topic1721.aspx.


Lostcode
Lostcode
Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)
Group: Forum Members
Posts: 29, Visits: 1

That worked thank you.

Last questions:


Is there a way to set it up so that when a valid response is triggered the port will spit out a response?


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K

Suppose I have a <text> element with two items, A and B. I want to sent a <port> signal, 00000001 for A and 00000010 for B:

<trial mytrial>
/ stimulusframes = [1=mytext, myport]
[...]
</trial>

<text mytext>
/ items = ("A", "B")
/ select = noreplace
</text>

<port myport>
/ items = ("00000001", "00000010")
/ select = text.mytext.currentindex
</port>


The same applies when using a <picture> instead of <text>.


Lostcode
Lostcode
Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)Guru (8.1K reputation)
Group: Forum Members
Posts: 29, Visits: 1

I will be associating different <port> items with different pictures.


My trial pulls from the pictures listed in <picture trigg> which is from a <item trigg> list.



The block takes that info and randomizes the pictures being displayed.

How would I go about making the picture that is displayed send the item in <port>?


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search