Replies: 1 comment 2 replies
-
Hi @woodenchair, unfortunately it's not possible to generate a What you can do instead is set up your If you go with the loop solution, then another change you'll have to make is that instead of using the stimulus: jsPsych.timelineVariable('food'), You'll want to get the stimulus value directly from your stimulus: function() {
return imagesNatural[counter].food;
} Finally, the Does that solution work for you? If you get stuck, I suggest putting some |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I am having trouble running a code that I wrote in jsPsych. The code uses a custom plugin that I created for the purpose of the experiment I am designing. My plugin, "image-button-response-with-name," is the same as the "image-button-response" plugin except that it also incorporates a parameter called "name," where I can input a string to identify the trial in question.
Here is what I am trying to do in my code:
Here is my code:
This code is not working. When my computer gets to the "test" timeline, it runs 5 trials instead of the desired 10. Furthermore, it does not display any images during the trials. This makes me think that my imagesNatural array contains the items from the imageNames_shuffled array and not the paths to my images. Unfortunately, I do not know how to fix my code such that the imagesNatural array will contain the paths to my images.
If anyone has any suggestions as to how I could fix my code, would you please share them here?
Beta Was this translation helpful? Give feedback.
All reactions