![]() ![]() To get a better feel for what was happening “behind the scenes” in the Builder program above: Whenever you run a Builder experiment, PsychoPy ® will first translate it into python code, and then execute that code. As a segue to the Coder, lets start from the Builder, and see how Builder programs work. When you want to have more complex designs or features, you’ll want to investigate the Coder. It provides a lot of the key features that people need to run a wide variety of studies. You could stop here, and just use the Builder for creating your experiments. Being familiar with the Builder demos can only help this process. ![]() Copy it, and then adapt it step by step to become more and more like the program you have in mind. Many people find it helpful to explore the Builder demos, in part to see what is possible, and especially to see how different things are done.Ī good way to develop your own first PsychoPy ® experiment is to base it on the Builder demo that seems closest. You may want to consult the Builder documentation. To do more, you can try things out and see what happens. You can quit PsychoPy ® from the File menu, or typing Ctrl-Q / Cmd-Q. When running an experiment, you can quit by pressing the escape key (this can be configured or disabled). What if you wanted to display your cheerful greeting for longer than the default time?Ĭlick on your Text component (the existing one, not a new one).Įdit the Stop duration (s) to be 3.2 times are in seconds. If nothing happens or it looks wrong, recheck all the steps above be sure to start from a new Builder view. (Components, Routines, and other Builder concepts are explained in the Builder documentation.)īack in the main Builder, type Ctrl-R (Windows, Linux) or Cmd-R (Mac), or use the mouse to click the Run icon.Īssuming you typed in “Hello world!”, your screen should have looked like this (briefly): Your text component now resides in a routine called trial. (Properties dialogs have a link to online help-an icon at the bottom, near the OK button.) When you run the program, the text you type here will be shown on the screen.Ĭlick OK (near the bottom of the dialog box). In the Text field, replace the default text with your message. To get a new Builder view, type Ctrl-N on Windows or Linux, or Cmd-N on Mac.Ĭlick on a Text component and a Text Properties dialog will pop up. If you have poked around a bit in the Builder already, be sure to start with a clean slate. ![]() Start PsychoPy ®, and be sure to be in the Builder view. When learning a new computer language, the classic first program is simply to print or display “Hello world!”. Install the PsychoPy ® libraries and dependencies, and use your favorite IDE instead of the Coder. If the PsychoPy ® app is started with flags -coder (or -c), or -builder (or -b), then the preferences will be overridden and that view will be created as the app opens.įor experienced python programmers, it’s possible to use PsychoPy ® without ever opening the Builder or Coder. On Linux, you can start PsychoPy ® from a command line, or make a launch icon (which can depend on the desktop and distro). On these two platforms you can open the Builder and Coder views from the View menu and the default view can be set from the preferences. If you installed the StandAlone version on macOS then the application is where you put it (!). If you’ve installed the StandAlone version of PsychoPy ® on MS Windows then there should be an obvious link to PsychoPy ® in your > Start > Programs. The Builder and Coder views are the two main aspects of the PsychoPy ® application. The Coder tutorials should help get you going, and the Reference Manual (API) will give you the details. The demos illustrate how to do specific tasks or use specific features they are not whole experiments. Importantly, it has its own output window and Demo menu. ![]() For those comfortable with programming, the Coder view provides a basic code editor with syntax highlighting, code folding, and so on. Note: if you are taking a study online we highly advise even experienced coders use Builder view, as the JS version of your experiment will also be generatedĬoder. But you can always compile your experiment into a python script for fine-tuning, and this is a quick way for experienced programmers to explore some of PsychoPy’s libraries and conventions. You can generate a wide range of experiments easily from the Builder using its intuitive, graphical user interface (GUI). It also has a underlying Reference Manual (API) that you can call directly.īuilder. As an application, PsychoPy ® has two main views: the Builder view, and the Coder view. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |