Sending a trigger for stimulus onset and button press


Author
Message
Nothando Nkambule
Nothando Nkambule
Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)
Group: Forum Members
Posts: 21, Visits: 51
Dave - Monday, September 25, 2017
Tash - Sunday, September 24, 2017
Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types  such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press
so here is an example of one trigger that I have coded and it works , it is for the event type

port settings
***********************************************************************
<port marker1>
/ items = ("00000001")
/ port = LPT1
/ subport = data

</port>

<trial attributeA>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = attributeA,marker1]
/ posttrialpause = 1200
</trial>

this trigger  "/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.



Define additional <port> elements for the response triggers e.g

<port markerE>
...
</port>

<port markerA>
...
</port>

and then "display" them via the trial's /responsemessage attributes:

<trial attributeA>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = attributeA,marker1]
/ responsemessage = ("A", markerA, 500)
/ responsemessage = ("E", markerE, 500)

/ posttrialpause = 1200
</trial>

Thanks, I will give it a try.
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: 108K
Tash - Sunday, September 24, 2017
Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types  such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press
so here is an example of one trigger that I have coded and it works , it is for the event type

port settings
***********************************************************************
<port marker1>
/ items = ("00000001")
/ port = LPT1
/ subport = data

</port>

<trial attributeA>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = attributeA,marker1]
/ posttrialpause = 1200
</trial>

this trigger  "/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.



Define additional <port> elements for the response triggers e.g

<port markerE>
...
</port>

<port markerA>
...
</port>

and then "display" them via the trial's /responsemessage attributes:

<trial attributeA>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = attributeA,marker1]
/ responsemessage = ("A", markerA, 500)
/ responsemessage = ("E", markerE, 500)

/ posttrialpause = 1200
</trial>
Nothando Nkambule
Nothando Nkambule
Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)
Group: Forum Members
Posts: 21, Visits: 51
Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types  such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press
so here is an example of one trigger that I have coded and it works , it is for the event type

port settings
***********************************************************************
<port marker1>
/ items = ("00000001")
/ port = LPT1
/ subport = data

</port>

<trial attributeA>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulusframes = [1 = attributeA,marker1]
/ posttrialpause = 1200
</trial>

this trigger  "/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search