![]() Easily customizable variables have been listed at the top of each code. Įach of these tasks can be customized to some extent (number of trials, set size in trials, trial duration etc). A demonstration of the task can be viewed here. Participants are required to memorize locations of colored squares on a grid while simultaneously performing simple symmetry judgement decisions. Methods from this task resemble those described in Oswald et al (2014 ). This is a visuo-spatial WM processing task. Participants have to quickly memorize colors of squares and detect changes. Methods from this test resemble those described in Cowan et al (2006 ). Participants are required to memorize a string of letters while simultaneously performing simple mathematical calculations. This is a verbal-numeric WM processing task. Participants are required to memorize a string of digits and recall them. Methods from this test resemble those descibed in Woods et al (2011 ). This is a verbal-numeric WM storage task. However, given that online experiments have less controlled environments, the reliability of WM measures might be affected.ĭigit span test. Since these tasks are browser based, they can be conveniently used for online experiments (e.g., on MTurk). Paper resulting from these experiments can be found here. These WM tests have previously been used in lab experiments (data from experiments is included in directory). All have been designed on JavaScript using the jsPsych library ( ). *Hint: you can ` generate a random letter in python `_ or use a random integer to index a letter from a list e.g.Working memory experiment tasks designed on JavaScriptįour classic working memory (WM) tests are included in this directory. Turn this digit span task into a letter span task using code. Your entire experiment should now look like this: Exercise ¶Īdd a routine to the start of your experiment and ask participants to type their name and occupation. Let’s allow 5 seconds for recall by setting the duration of this component to 5 seconds. This indicates that participants can edit the content of the textbox. Make sure to have the “Editable” field selected. Add a routine called “recall” and inside this routine add a textBox component. In this experiment, we are going to allow participants to type responses. We load our conditions spreadsheet into the Conditions field of our outerloop, in our inner loop we use the variable seriesLen in the nReps field (note that we do not need to start this field with a “$” because the field already contains one in the name). The inner loop, we will name “stimuli” the outerloop we will name “trials”, this is because our outer loop represents each trial and the inner loop represents the series of digits presented within a trial. OK now we want to wrap two loops around this routine. All we would need is to add a code component, change type to JS and type random = Math.random in the Begin Experiment tab. This might not work online, instead what we could do is use int(random()*10) which is easier to translate into Javascript. ![]() Because randint() is actually imported from numpy.random. ![]()
0 Comments
Leave a Reply. |