4/4/2023 0 Comments Getting started with psychopyIn our demo experiment, we furthermore specified that the filename should be sub-%s_%s', in which the format specifiers ( %s) are replaced by the participant identifier ( expInfo) and experiment name ( expInfo). By default, a new directory, data, is created in which the files will be saved. Next to “Data filename”, you can specify the filename of the datafiles that will be saved. Under the “Data” tab, there are various options to fine-tune how you want your experimental data to be saved. Just before the experiment window opens, you should see the info dialog pop-up! Then, run the demo experiment again (press the escape key to quit). There are however notable differences between the PsychoJS and PsychoPy libraries, most of which having to do with the way a web browser interprets and runs JavaScript, deals with resources (such as images, sound or videos), or render stimuli.Enable the info dialog by clicking the checkbox next to “Show info dialog” and add a new field, “age”, to the info dialog (without a default value). Experiment designers familiar with the PsychoPy library should feel at home with PsychoJS, and can expect the same level of control they have with PsychoPy, from the structure of the trials/loops all the way down to frame-by-frame updates. PsychoJS offers classes such as Window and ImageStim, with very similar attributes to their Python equivalents. We built the PsychoJS library to make the JavaScript experiment files look and behave in very much the same way as the Builder-generated Python files. Many of the existing Builder experiments should "just work", subject to the Components being compatible between PsychoPy and PsychoJS. The recommended approach to creating experiments is to use PsychoPy Builder to generate the javascript and html files. The server will also need to host the PsychoJS library. Those files need to be hosted on a web server to which participants will point their browser in order to run the experiment. Running PsychoPy experiments online requires the generation of an index.html file and of a javascript file that contains the code describing the experiment. In some circumstance, they can even use their phone! Getting Started The idea behind PsychoJS is to make PsychoPy experiments available online, from a web page, so participants can run them on any device equipped with a web browser such as desktops, laptops, or tablets. Experiments can be run multiple times per day, without data collection becoming impractical. We can study people in environments they do not find intimidating. Data can be collected on larger, more varied, international populations. With high-speed broadband, improved web technologies and smart devices everywhere, studies can now go online without sacrificing too much temporal precision. These studies are still typically conducted on small numbers of people in laboratory environments equipped with dedicated hardware. psychology, neuroscience, linguistics or mental health) use computers to present stimuli and record responses in a precise manner. Many studies in behavioural sciences (e.g. You can contribute by submitting pull requests to the PsychoJS GitHub repository, and discuss issues and current and future features on the Online category of the PsychoPy Forum. You can create online experiments from the PsychoPy Builder, you can find and adapt existing experiments on, or create them from scratch. It is the online counterpart of the PsychoPy Python library. PsychoJS is a JavaScript library that makes it possible to run neuroscience, psychology, and psychophysics experiments in a browser. Home Project Website Forum Github Modules
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |