![]() ![]() Think of your work situation: one day you need a regular machine with Office and Endnote, whereas the next day requires 128GiB RAM and 8 CPUs for heavier runs of Stata MP8, and on the third day you are in the need of a desktop with 1000 virtual GPU processor cores and 250GiB RAM, before returning to normal Office and Endnote to end your publication. With VDI we can easily configure a virtual desktop machine with the needed RAM, CPU, available software and other resources, with a high degree of flexibility for the researchers. By providing the user with a reasonably well-equipped virtual machine (VM), it will be possible to give a regular user a machine with more appropriate custom performance. When you purchase a computer, you get a machine with far greater performance than would be satisfactory for most common users. We have set up a few virtual desktop machines running Windows 10 for users of PyschoPy. #= #IMPORT MODULES #= #-import numpy and/or numpy functions * #-import psychopy functions #-import file save functions #-(import other functions as necessary: os.) #= #PATH SETTINGS #= #-define the main directory where you will keep all of your experiment files #-define the directory where you will save your data #-if you will be presenting images, define the image directory #-check that these directories exist #= #COLLECT PARTICIPANT INFO #= #-create a dialogue box that will collect current participant number, age, gender, #handedness #get date and time #-create a unique filename for the data #= #STIMULUS AND TRIAL SETTINGS #= #-number of trials and blocks * #-stimulus names (and stimulus extensions, if images) * #-stimulus properties like size, orientation, location, duration * #-start message text * #= #PREPARE CONDITION LISTS #= #-check if files to be used during the experiment (e.g., images) exist #-create counterbalanced list of all conditions * #= #PREPARE DATA COLLECTION LISTS #= #-create an empty list for correct responses (e.g., "on this trial, a response of X is #correct") * #-create an empty list for participant responses (e.g., "on this trial, response was a #X") * #-create an empty list for response accuracy collection (e.g., "was participant #correct?") * #-create an empty list for response time collection * #-create an empty list for recording the order of stimulus identities * #-create an empty list for recording the order of stimulus properties * #= #CREATION OF WINDOW AND STIMULI #= #-define the monitor settings using psychopy functions #-define the window (size, color, units, fullscreen mode) using psychopy functions #-define experiment start text unsing psychopy functions #-define block (start)/end text using psychopy functions #-define stimuli using psychopy functions #-create response time clock #-make mouse pointer invisible #= #START EXPERIMENT #= #-present start message text #-allow participant to begin experiment with button press #= #BLOCK SEQUENCE #= #-for loop for nBlocks * #-present block start message #-randomize order of trials here * #-reset response time clock here #= #TRIAL SEQUENCE #= #-for loop for nTrials * #-set stimuli and stimulus properties for the current trial #-empty keypresses #= #START TRIAL #= #-draw stimulus #-flip window #-wait time (stimulus duration) #-draw stimulus #-.The service can run Windows 10 and Linux, and can be accessed from VMWARE Horizont client and To go back into your psychopy environment at any time in the future, simply go into the Anaconda Navigator, click "psychopy", then launch Spyder. Scroll down to "Spyder", click "install". Click the psychopy environment, and you will already see several programs you can potentially install or launch. You'll see two environments now: base(root) and psychopy. This will create a psychopy environment in Anacdonda, all in about 10 minutes.Īfter you have created your psychopy environment, go into your Anaconda Navigator. You just copy and paste three lines into the Anacdonda Prompt (like the Windows Powershell or Linux Terminal). ![]() Then, follow the extremely simple instructions (you literally do 3 things) on the PsychoPy download page under Anaconda and Miniconda. My recommendation is to first install Anaconda, a platform that comes with everything you need to start programming experiments. ![]() You can download a standalone version of PsychoPy, but it can be a huge pain in the ass to do this, especially if you've never done it before and are not prepared to waste an entire day figuring it out. Before you start this section, make sure you have downloaded the latest version of PsychoPy for your OS from the PsychoPy website. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |