Description of the problem:
My experiment is written without JsPsych or PsychoJS, but Pavlovia only has instructions of data saving for experiments using those libraries. How can I save data (csv/json files) on Pavlovia for experiments written in vanilla JS? I don’t really want to modify the experiment code significantly to incorporate JsPsych or PsychoJS. Currently I can generate json files and save them locally when I pilot the experiment, but not sure how to save it on Pavlovia. Any suggestion would be helpful, thanks!
However, I have another issue: the experiment just ends and an empty data file is saved. Is it because jsPsych starts before everything? The strange thing is if I use console.log in the main js file, things can be printed but the experiment just ends (elements are displayed normally though).
Below is a screenshot of what I see when I pilot the experiment - Pavlovia’s experiment ending message is displayed before the experiment starts (i can still click through the experiment though…):
Hello Daisy, I’m facing a similar issue of the experiment ending and an empty data file is saved. Did you manage to pinpoint the issue? Any guidance on the matter would be greatly appreciated.