My experiment works fine when run on my PC but when I run it online it fails with the following message
FATAL GUI.dialog core-3.2.js 705 | {“origin”:“TrialHandler.importConditions”,“context”:“when importing condition: Participants12Online.xlsx”,“error”:{}}
BrowserConsoleAppender.append @ log4javascript.min.js:1
I used builder to set up a loop to read the conditions file, using the participant to access a particular row. The details are below.
I read a posting which referenced Wakefield Morys-Carter’s excellent crib sheet which provides a solution but I think that only applies if you are writing the code as to opposed to using builder.
Any help would be greatly appreciated.
when I look at the python code generated it looks like what Wakefield mentioned in his crib sheet but I do not know how to add the javascript code when I am not writing python code directly.
Wakefield’s crib.
Python
myData = data.TrialHandler(nReps=1, method='sequential', extraInfo=expInfo, originPath=-1, trialList=data.importConditions('conditions.xlsx'), seed=None, name='myData')
Access individual values using: aValue = myData.trialList[Idx]['variableName']
JavaScript
myData = new TrialHandler({
psychoJS: psychoJS,
nReps: 1, method: TrialHandler.Method.SEQUENTIAL,
extraInfo: expInfo, originPath: undefined,
trialList: 'conditions.xlsx',
seed: undefined, name: 'myData'});```