Millisecond Forums

monkey latency and repeated trials?

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

By ai293 - 7/10/2025

Hi, I wanted to ask if we could set the monkey to respond at a certain time (something like monkey latency =320), and whether I can set the monkey responses to be different for a repeated trial? For example, I have 40 trials in the block. 10 of them are repetitions of trial B. Can I set the monkey response = 5 for the first time trial B appears, response = 2 for the second time trial B appears? Thanks!
By Dave - 7/10/2025

ai293 - 7/10/2025
Hi, I wanted to ask if we could set the monkey to respond at a certain time (something like monkey latency =320), and whether I can set the monkey responses to be different for a repeated trial? For example, I have 40 trials in the block. 10 of them are repetitions of trial B. Can I set the monkey response = 5 for the first time trial B appears, response = 2 for the second time trial B appears? Thanks!

> I wanted to ask if we could set the monkey to respond at a certain time (something like monkey latency =320)

https://www.millisecond.com/support/docs/v6/html/language/elements/monkey.htm
https://www.millisecond.com/support/docs/v6/html/language/attributes/latencydistribution.htm

> Can I set the monkey response = 5 for the first time trial B appears, response = 2 for the second time trial B appears?

If you sample the monkey responses from a list set to sequential selection, sure.

<block myBlock>
/ trials = [1-5 = myTrial]
</block>

<trial myTrial>
/ validresponse = (1,2,3,4,5)
/ monkeyresponse = (list.monkeyResponses.nextValue)
</trial>

<list monkeyResponses>
/ items = (5,2,4,1,3)
/ selectionmode = sequence
</list>
By ai293 - 7/10/2025

Dave - 7/10/2025
ai293 - 7/10/2025
Hi, I wanted to ask if we could set the monkey to respond at a certain time (something like monkey latency =320), and whether I can set the monkey responses to be different for a repeated trial? For example, I have 40 trials in the block. 10 of them are repetitions of trial B. Can I set the monkey response = 5 for the first time trial B appears, response = 2 for the second time trial B appears? Thanks!

> I wanted to ask if we could set the monkey to respond at a certain time (something like monkey latency =320)

https://www.millisecond.com/support/docs/v6/html/language/elements/monkey.htm
https://www.millisecond.com/support/docs/v6/html/language/attributes/latencydistribution.htm

> Can I set the monkey response = 5 for the first time trial B appears, response = 2 for the second time trial B appears?

If you sample the monkey responses from a list set to sequential selection, sure.

<block myBlock>
/ trials = [1-5 = myTrial]
</block>

<trial myTrial>
/ validresponse = (1,2,3,4,5)
/ monkeyresponse = (list.monkeyResponses.nextValue)
</trial>

<list monkeyResponses>
/ items = (5,2,4,1,3)
/ selectionmode = sequence
</list>

Thank you Dave!! For the "latencydistribution," does this only work as a constant vs distribution? Can I also have a similar list? For example, you set monkeyResponses = 5, 2, 4, 1, 3. Can I set the latency of response 5 to 230, latency of response 2 to 140, etc? So multiple fixed values instead of a distribution or a single constant? 
By Dave - 7/10/2025

ai293 - 7/10/2025
Dave - 7/10/2025
ai293 - 7/10/2025
Hi, I wanted to ask if we could set the monkey to respond at a certain time (something like monkey latency =320), and whether I can set the monkey responses to be different for a repeated trial? For example, I have 40 trials in the block. 10 of them are repetitions of trial B. Can I set the monkey response = 5 for the first time trial B appears, response = 2 for the second time trial B appears? Thanks!

> I wanted to ask if we could set the monkey to respond at a certain time (something like monkey latency =320)

https://www.millisecond.com/support/docs/v6/html/language/elements/monkey.htm
https://www.millisecond.com/support/docs/v6/html/language/attributes/latencydistribution.htm

> Can I set the monkey response = 5 for the first time trial B appears, response = 2 for the second time trial B appears?

If you sample the monkey responses from a list set to sequential selection, sure.

<block myBlock>
/ trials = [1-5 = myTrial]
</block>

<trial myTrial>
/ validresponse = (1,2,3,4,5)
/ monkeyresponse = (list.monkeyResponses.nextValue)
</trial>

<list monkeyResponses>
/ items = (5,2,4,1,3)
/ selectionmode = sequence
</list>

Thank you Dave!! For the "latencydistribution," does this only work as a constant vs distribution? Can I also have a similar list? For example, you set monkeyResponses = 5, 2, 4, 1, 3. Can I set the latency of response 5 to 230, latency of response 2 to 140, etc? So multiple fixed values instead of a distribution or a single constant? 

> Can I set the latency of response 5 to 230, latency of response 2 to 140, etc? So multiple fixed values instead of a distribution or a single constant?

No.