Serial port error psyscope7/12/2023 To facilitate their modification, global experiment variables are typically separated into a separate file called con-fig.py. The second function served by the Experiment class is that of parsing the experiment's configuration file. The Experiment object processes the flag -s sub001 and creates a data directory for participant sub001. For example, if the script in Listing 1 were saved in a file called easyStroop.py, it could be run from the command line with the command python easyStroop.py -s sub001. The experiment program is run by invoking the Python interpreter on the experiment script from the command line, and the participant label is passed to PyEPL as a command-line parameter. Our simple example relies only on the first of these: creating and maintaining a directory structure for each participant. The Experiment class manages three functions that pertain to all experiments. The first nontrivial line of the script is line 9, which creates an instance of the Experiment class. Python has a very simple syntax, which makes programming minimally daunting for the novice but provides advanced software-engineering features, such as inheritance and polymorphism, for the initiate. Finally, the Python language itself may be considered an additional feature. Additional features include screen-refresh synchronization, automated logging of experimental events, and management of participant data hierarchies. PyEPL also offers tools for synchronizing behavioral and electrophysiological data. PyEPL adds facilities for recording vocal responses and for the creation of desktop-based virtual reality experiments to the standard suite of tools commonly available in other packages (e.g., timing, stimulus control, response acquisition, etc.). PyEPL offers several advantages over existing programming libraries and graphical development tools ( Table 1). It uses only cross-platform software components, and thus may be used on both Mac OS X and Linux. PyEPL (pronounced ‘p ī-ē-pē-el) is an experiment programming library, written for, and mostly in, the Python programming language. Broadly speaking, these tools either take the form of function libraries used in conjunction with scripting languages (e.g., the Psychophysics Toolbox used with the MATLAB scripting language Brainard, 1997 Pelli, 1997) or they take the form of graphical experiment creation tools that allow users without any formal programming skills to develop experiments (e.g., the E-Prime 1 package sold by Psychology Software Tools, Inc.). Unlike the early days of the PC, when researchers had to write their own low-level code to control experiments, there now exist numerous software tools that enable researchers with relatively modest programming skills to develop sophisticated experiments. The proliferation of personal computers (PCs) during the past three decades and their ability to control both input and output devices have made them the standard tool for experimentation in the psychological laboratory.
0 Comments
Leave a Reply. |