Hi Miao,
There were a few issues with your code:
expt file:
- The current version of minno.js is 0.3, and its url is: /common/all/js/minnojs/0.3.jsp. You used version 0.1.
Manager file (you called it intro.js):
- You need to define the tasks (i.e., API.addTasksSet) before you create a sequence.
- Also, you need to use the type 'time' for time tasks (rather than 'pip') with no version property.
trial2.js:
- No need to set the task name if you do that in the manager file.
- You need to tell minno to log your data (stimuli, RT. ACC) explicitly, and in the appropriate place (i.e., following the participants' response). So I added a score property to the trial (to log ACC) and a log type to the trial's actions.
- I also added {type:'resetTimer'} to measure the RT following the onset of the target stimulus.
- You also need to remove the option to give an input following the participant's response (so participants would only be able to respond once per trial).
- Your setter function did not work for me, so I commented it out.
- You need to trigger endTrial for the error trials too.
- Finally, I didn't understand your code for the sequence, It seems you redefine the trial. I changed it to just inherit the trials you defined earlier (1,2).
Here is my complete code (**with the only intention to get data for trial2.js), and here is the data I got:
Let me know if you have further questions.
Best,
Mayan