URL of experiment:
Description of the problem:
Hello,
Could anyone help me with importing stimuli with javascripts? I can’t use the builder loop function due to the complexity of the following stimuli selection. I have found a very useful stream in the forum, who successfully imported stimuli (Variables empty in online script (looping over dictionaries) - #3 by aisa2).
I have wrote my javascript based on this helpful post, shown below:
csv_neutral = new TrialHandler({
psychoJS: psychoJS,
nReps: 1, method: TrialHandler.Method.SEQUENTIAL,
extraInfo: expInfo, originPath: undefined,
trialList: 'neutral.csv',
seed: undefined, name: 'csv_neutral'
});
neutralList = csv_neutral.trialList;
thisExp.addData("neutrallist_1", neutralList);
However, pavlovia gave me this error:
I really want to add this data to see what it looks like. After that my ulminate goal is to melt this ordered dictionary into a string (or dictionary) and shuffle it.
Any insight on the error? Or any suggestions about importing stimuli and get it into a string (or dictionary)? Thanks in advance!