Just a follow up post. The solution is manually adding {'name': 'stimuli.xlsx', 'path': 'stimuli.xlsx'}
to the resource dictionary in .js
file where
psychoJS.start({
expName: expName,
expInfo: expInfo,
resources: [
{'name': 'image/imagedemo2.png', 'path': 'image/imagedemo2.png'},
{'name': 'instrucitonimage.xlsx', 'path': 'instrucitonimage.xlsx'},
{'name': 'image/imagedemo4.png', 'path': 'image/imagedemo4.png'},
{'name': 'image/imagedemo3.png', 'path': 'image/imagedemo3.png'},
{'name': 'image/imagedemo1.png', 'path': 'image/imagedemo1.png'}
]
});
I didn’t output the files to an HTML folder, as suggested by the psychopy developer, see the post here PsychoPy Builder not creating HTML folder.
However I am still waiting for Becca’s reply regarding how exactly the .js
file identifies the data source and loads it to the program. I am confused why the stimuli is not added to the resource. My stimuli.xlsx already present at the same folder as the .js file why the psychopy cannot add it to the resource dictionary automatically?
Thanks in advance.