Millisecond Forums

How to make a maker based on participant's response and the trial's branch?

https://forums.millisecond.com/Topic36682.aspx

By Yufan - 11/28/2024

In my experiment, I have three conditions: old, similar, and new. I’d like to create a marker based on the participant's response, but I am unsure how to proceed. Furthermore, I also want to create a marker for the participant's confidence rating, which follows the old/similar/new judgment.
Below is my code.

//7 for confidence rating
<port rating>
/ port = LPT2
/ subport = data
/ items = ("00000111")
</port>

//8 for old response
<port oldr>
/ port = LPT2
/ subport = data
/ items = ("00001000")
</port>

//9 for similar response
<port simr>
/ port = LPT2
/ subport = data
/ items = ("00001001")
</port>

//10 for new response
<port newr>
/ port = LPT2
/ subport = data
/ items = ("00001010")
</port>

<trial testing_old_G1>
/ stimulustimes = [0=fixation; 500=Testing_Old_G1, oldtest; 1500=white, old, similar, new]
/ beginresponsetime = 1500
/ validresponse = (values.key_old,values.key_similar, values.key_new)
/ correctresponse = (values.key_old)
/ responseinterrupt = immediate
/ posttrialpause = 500
/ branch = [
  trial.confidence
]
</trial>

How to combine port 7,8,9,10 and trial test_old_G1?
By Dave - 11/29/2024

Yufan - 11/29/2024
In my experiment, I have three conditions: old, similar, and new. I’d like to create a marker based on the participant's response, but I am unsure how to proceed. Furthermore, I also want to create a marker for the participant's confidence rating, which follows the old/similar/new judgment.
Below is my code.

//7 for confidence rating
<port rating>
/ port = LPT2
/ subport = data
/ items = ("00000111")
</port>

//8 for old response
<port oldr>
/ port = LPT2
/ subport = data
/ items = ("00001000")
</port>

//9 for similar response
<port simr>
/ port = LPT2
/ subport = data
/ items = ("00001001")
</port>

//10 for new response
<port newr>
/ port = LPT2
/ subport = data
/ items = ("00001010")
</port>

<trial testing_old_G1>
/ stimulustimes = [0=fixation; 500=Testing_Old_G1, oldtest; 1500=white, old, similar, new]
/ beginresponsetime = 1500
/ validresponse = (values.key_old,values.key_similar, values.key_new)
/ correctresponse = (values.key_old)
/ responseinterrupt = immediate
/ posttrialpause = 500
/ branch = [
  trial.confidence
]
</trial>

How to combine port 7,8,9,10 and trial test_old_G1?

You use /responsemessage attributes in the trial to display the applicable <port> stimulus upon response.

https://www.millisecond.com/support/docs/v6/html/language/attributes/responsemessage.htm

See the Auditory Oddball Task available in the library as an example.

By Yufan - 12/2/2024

Dave - 11/29/2024
Yufan - 11/29/2024
In my experiment, I have three conditions: old, similar, and new. I’d like to create a marker based on the participant's response, but I am unsure how to proceed. Furthermore, I also want to create a marker for the participant's confidence rating, which follows the old/similar/new judgment.
Below is my code.

//7 for confidence rating
<port rating>
/ port = LPT2
/ subport = data
/ items = ("00000111")
</port>

//8 for old response
<port oldr>
/ port = LPT2
/ subport = data
/ items = ("00001000")
</port>

//9 for similar response
<port simr>
/ port = LPT2
/ subport = data
/ items = ("00001001")
</port>

//10 for new response
<port newr>
/ port = LPT2
/ subport = data
/ items = ("00001010")
</port>

<trial testing_old_G1>
/ stimulustimes = [0=fixation; 500=Testing_Old_G1, oldtest; 1500=white, old, similar, new]
/ beginresponsetime = 1500
/ validresponse = (values.key_old,values.key_similar, values.key_new)
/ correctresponse = (values.key_old)
/ responseinterrupt = immediate
/ posttrialpause = 500
/ branch = [
  trial.confidence
]
</trial>

How to combine port 7,8,9,10 and trial test_old_G1?

You use /responsemessage attributes in the trial to display the applicable <port> stimulus upon response.

https://www.millisecond.com/support/docs/v6/html/language/attributes/responsemessage.htm

See the Auditory Oddball Task available in the library as an example.


Thank you! I've solved this problem!