Hi all,
I'm trying to implement a new learning task in Minno and I'm running into some issues. You can access the study from
here and I attached the task as a .txt as well.
(1) Randomization
I'm sorry, I feel like I keep running into this but I just haven't been able to figure it out.
In lines 261–262, I'm showing two stimuli:
{type: 'showStim',handle:'col2Left'},
{type: 'showStim', handle:'col1Right'},
and depending on the participant's choice, either the left stimulus or the right stimulus is then supposed to be shown as it enters a machine (e.g., lines 285–288):
{type:'showStim', handle:'col1RightTop'},
{type:'custom', fn: function(){
animate('[data-handle="col1RightTop"]', {duration: 3000, topShift: 0.2});
}},
I was trying to make sure that these two stimuli (e.g., col1Right and col1RightTop) are the same by setting the same random seed for them (e.g., lines 95 and 100), but something is clearly off because the stimulus that goes into the machine is not the same as the stimulus that was selected before.
(2) Incrementing a counter depending on participant response
In lines 352–354 I have some code that increments a counter so that I can show the trial number to participants. I tried to modify this code to make sure that another counter (which counts points) gets incremented depending on what option the participant chooses. For example, in lines 289–291, I'm trying to say the following:
{type:'custom', fn: function(trialobject, globalObject){
globalObject.col1Tracker = globalObject.col1Tracker + 10;
}},
For some reason this code is not working and the counter isn't getting incremented. Can someone please give me a pointer as to what I'm doing wrong?
(3) Logging
The only information that I'm really interested in logging is what option participants choose (E key vs. I key) and the two stimuli that they are selecting from. Which is why I tried to put the logging in line 271 (along with resetting the timer in line 263). However, the trial response getting logged is "commence" and the trial latency is 0. Where should I put the log and resetTimer actions so that I can log the participant's choice and the latency starting where the two options were first shown on screen?
Thanks so much for your help in advance!
—Benedek