Getting Started
Creating your first online experiment
Follow along with the videos below to get up and running fast.
Other resources
You will find many demos and useful tips on the HowTo Page and the Videos Page. Go to the Glossary Page for a quick reference.
Free online book
There is a free comprehensive manual online that covers all aspects of NeuroTask Scripting. (Hint: You can press Ctrl-F and quickly search the text for keywords.)
This video is an optional precursor for novices who are new to coding and want a bit of background on what scripting is before diving in.
This video is an optional precursor for novices who are new to coding and want a bit of background on what scripting is before diving in.
Learn the basics of NeuroTask scripting with the video tutorials below
by Julia Broderick-Hale (NeuroTask intern in 2020)
Each video also has a 'howto' description and JavaScript code, which you can copy to your account with one click.
This tutorial video shows how to create a demo experiment, a basic word recall task. It shows a series of words, then a text field for subjects to type the words they remember. Follow along…
This tutorial video shows how to create a demo experiment, a basic word recall task. It shows a series of words, then a text field for subjects to type the words they remember. Follow along by making your own copy of the script, found at: https://scripting.neurotask.com/howto/my_first_script
This script begins with an instruction to ‘remember the following words’. Then it displays eight words, one at a time, for 2 seconds each, with a 1-second blank screen in between. Last, it displays a text field with a label asking the subject to type the words they remember. The subject’s response is automatically saved to the script’s data.
Topics introduced: comments, instruction(), text(), await(), clear(), largeinput()
This tutorial video describes how to create a basic image memory task. It shows a series of images, then a text field for subjects to type what they remember. Follow along by making your own…
This tutorial video describes how to create a basic image memory task. It shows a series of images, then a text field for subjects to type what they remember. Follow along by making your own copy of the script, found at: https://scripting.neurotask.com/howto/my_second_script
This script is like Script 1, but using images. It begins with an instruction to remember the objects in the following images. Then it displays eight images, one at a time, for 2 seconds each, with a 1-second blank screen in between. Last, it displays a text field with a label asking the subject to type the objects they remember. The subject’s response is automatically saved to the script’s data.
Topics introduced: preload(), image.await(), setimage(), hideimage()
This tutorial video demonstrates the basic structure of an experiment. Follow along by making your own copy of the script, found at: https://scripting.neurotask.com/howto/my_third_script…
This tutorial video demonstrates the basic structure of an experiment. Follow along by making your own copy of the script, found at:
https://scripting.neurotask.com/howto/my_third_script
This script has the basic stages of a psychological experiment, organized using comments. First, it goes over informed consent. If the subject does not consent, they are brought directly to the end. If they consent, they are given instructions for the task. Then, the experimental trials take place (the word memory task from My 1st Script). After this, the subject is asked a few demographic questions in different formats (e.g. Likert scale, drop-down menu). Last, there is a debriefing about the purpose and hypothesis, and the experiment concludes.
Topics introduced: main.setfontsize(), radio(), if…else, select(), scale()
Mini Course: Online Programming With NeuroTask
by Job Toebosch (NeuroTask intern in 2019)
In Chapter 1, you get a general idea of what NeuroTask Scripting is. Then you can code along with the videos in Chapter 2. If you are an experienced programmer, you want to skip right video after Chapter 2, which runs to Chapter 2 at a much higher pace.
Job Toebosch takes you through the first steps in creating an online experiment with NeuroTask Scripting.
Job Toebosch takes you through the first steps in creating an online experiment with NeuroTask Scripting.
This video gives a short summary of the experiment we are going to program in the second part of this course.
This video gives a short summary of the experiment we are going to program in the second part of this course.
In this video we use the functions radio() and input() to ask some demographic details of our partcipants
In this video we use the functions radio() and input() to ask some demographic details of our partcipants
In this video we use a for loop in order to reduce the length of our script by replacing repetative elements with the for-loop
In this video we use a for loop in order to reduce the length of our script by replacing repetative elements with the for-loop
In this video we capture correct responses of our particpants using the awaitkey function. In addition, we use the square-brackets notation to select a item in an array based on the cycle of…
In this video we capture correct responses of our particpants using the awaitkey function. In addition, we use the square-brackets notation to select a item in an array based on the cycle of the loop. Finally we used a if-statement to make a distinction between GO and NO-GO trials
Capture reaction times of our partcipants by assessing the .RT key within our answer object. use the .push function to push reaction times inside an array. Finally, we use the log() function…
Capture reaction times of our partcipants by assessing the .RT key within our answer object. use the .push function to push reaction times inside an array. Finally, we use the log() function to save our and used toFixed(n) to define the number of decimals.
This is the last video of chapter 2 of this mini-course. In this video we clean the script that we constructed during the first videos. - Place semicolons at end of line - Remove long array…
This is the last video of chapter 2 of this mini-course.
In this video we clean the script that we constructed during the first videos.
- Place semicolons at end of line
- Remove long array with stimuli and use loop with .push to create a long array containing all stimuli
- Changed the i = i+1 statements to: i++
This video is similar to the 6 video's of chapter 2. However, the workpace is much higher compared to the detailed separate videos. Hence, this tutorial is more suitable for those with some…
This video is similar to the 6 video’s of chapter 2. However, the workpace is much higher compared to the detailed separate videos. Hence, this tutorial is more suitable for those with some experience in programming.
It also showcases how fast psychological experiments can be developed when using the NeuroTask programming environment.
Enjoy watching and happy scripting!