I’d be very grateful for any pointers where I can find more information.
I second that. Some suggestions and pointers would be very appreciated!
Which part of the script(s) would be useful? It’s a very long script … Here is what seems to me the crucial lines that submit code to JATOS (JATOS does nothing else in my experiment [or rather it does a small thing - randomising schedules- , but it will be easy to take that out]):
I have a structure called ‘data’ that throughout the experiment, I store data in. Below are just some examples what is stored in the structure. Then the data is usually ‘stringified’ and then send to JATOS. I’m wondering whether it might be possible to leave everything about the experiment the same and (after initialising PsychoJS of course), submit the data via PsychoJS?
data.exptDate.endExpt = new Date(); data.exptDate.experimentDuration = data.exptDate.endExpt.getTime() - data.exptDate.startExpt.getTime(); data.exptDate.numberMcqAttempts = tSet.mcq.attemptCounter; data.behaviorLongFormat=tSet.behaviorLongFormat; var resultJson = JSON.stringify(data); jatos.submitResultData(resultJson)