http://tsgdoc.socsci.ru.nl/api.php?action=feedcontributions&user=H.voogd&feedformat=atomTSG Doc - User contributions [en]2024-03-29T13:04:34ZUser contributionsMediaWiki 1.35.4http://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5582Eyetrackers2023-01-09T12:32:11Z<p>H.voogd: </p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a '''tutorial video''' on how to '''setup Eyelink with a participant''': [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
From the SR-Research support forum, about '''placement of monitor, camera and participant''':<br />
<br />
''Ideally, the Desktop mount should be placed between 50-70 cm from the participant's eyes and be centrally aligned with the Display monitor from the participant's perspective. When using a wide screen monitor it will need to be sufficiently far away from the participant that it fits within the trackable range of the system. As a rule of thumb it will need to be at a distance at least 1.75 times its width (so a 40 cm wide monitor would need to be at least 70 cm away). As widescreen monitors are typically around 50 cm wide, they will need to be placed at least 90 cm away. This means that, in order for the camera to be placed correctly (50-70 cm from the participant's eyes) it will need to be brought forward from the monitor 20-30 cm.''<br />
<br />
''The top of the EyeLink camera and illuminator should also be as high as possible in the participant's field of view without obstructing any part of the display.''<br />
<br />
{| class="wikitable"<br />
|-<br />
|[[File:EyelinkParticipantSetup.jpg|frame|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
|}<br />
<br />
The original image is from the sr-research support forum. It is found [https://www.sr-support.com/showthread.php?tid=206 here (sign in needed).]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
https://www.fh-joanneum.at/en/projekt/visionspace-wahrnehmungslabor/<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[https://www.fh-joanneum.at/en/projekt/visionspace-wahrnehmungslabor/ Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5456Eyetrackers2022-08-09T10:22:32Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a '''tutorial video''' on how to '''setup Eyelink with a participant''': [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
From the SR-Research support forum, about '''placement of monitor, camera and participant''':<br />
<br />
''Ideally, the Desktop mount should be placed between 50-70 cm from the participant's eyes and be centrally aligned with the Display monitor from the participant's perspective. When using a wide screen monitor it will need to be sufficiently far away from the participant that it fits within the trackable range of the system. As a rule of thumb it will need to be at a distance at least 1.75 times its width (so a 40 cm wide monitor would need to be at least 70 cm away). As widescreen monitors are typically around 50 cm wide, they will need to be placed at least 90 cm away. This means that, in order for the camera to be placed correctly (50-70 cm from the participant's eyes) it will need to be brought forward from the monitor 20-30 cm.''<br />
<br />
''The top of the EyeLink camera and illuminator should also be as high as possible in the participant's field of view without obstructing any part of the display.''<br />
<br />
{| class="wikitable"<br />
|-<br />
|[[File:EyelinkParticipantSetup.jpg|frame|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
|}<br />
<br />
The original image is from the sr-research support forum. It is found [https://www.sr-support.com/showthread.php?tid=206 here (sign in needed).]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5455Eyetrackers2022-08-09T10:21:38Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a '''tutorial video''' on how to '''setup Eyelink with a participant''': [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
From the SR-Research support forum:<br />
<br />
''Ideally, the Desktop mount should be placed between 50-70 cm from the participant's eyes and be centrally aligned with the Display monitor from the participant's perspective. When using a wide screen monitor it will need to be sufficiently far away from the participant that it fits within the trackable range of the system. As a rule of thumb it will need to be at a distance at least 1.75 times its width (so a 40 cm wide monitor would need to be at least 70 cm away). As widescreen monitors are typically around 50 cm wide, they will need to be placed at least 90 cm away. This means that, in order for the camera to be placed correctly (50-70 cm from the participant's eyes) it will need to be brought forward from the monitor 20-30 cm.''<br />
<br />
''The top of the EyeLink camera and illuminator should also be as high as possible in the participant's field of view without obstructing any part of the display.''<br />
<br />
{| class="wikitable"<br />
|-<br />
|[[File:EyelinkParticipantSetup.jpg|frame|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
|}<br />
<br />
The original image is from the sr-research support forum. It is found [https://www.sr-support.com/showthread.php?tid=206 here (sign in needed).]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5454Eyetrackers2022-08-09T08:10:27Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a tutorial video on how to setup Eyelink with a participant: [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
Monitor, camera and participant positioning should resemble this:<br />
<br />
{| class="wikitable"<br />
|-<br />
|[[File:EyelinkParticipantSetup.jpg|frame|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
|}<br />
<br />
The original image is from the sr-research support forum. It is found [https://www.sr-support.com/showthread.php?tid=206 here (sign in needed).]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5453Eyetrackers2022-08-09T08:04:45Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a tutorial video on how to setup Eyelink with a participant: [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
Monitor, camera and participant positioning should resemble this:<br />
<br />
{| class="wikitable"<br />
|-<br />
|[[File:EyelinkParticipantSetup.jpg|frame|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
|}<br />
<br />
The original image is from the sr-research support forum. It is found [here (sign in needed) [[https://www.sr-support.com/showthread.php?tid=206<nowiki>]]</nowiki>]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5452Eyetrackers2022-08-09T08:03:22Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a tutorial video on how to setup Eyelink with a participant: [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
Monitor, camera and participant positioning should resemble this:<br />
<br />
{| class="wikitable"<br />
[[File:EyelinkParticipantSetup.jpg|frame|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
|}<br />
<br />
The original image is from the sr-research support forum. It is found [here (sign in needed) [[https://www.sr-support.com/showthread.php?tid=206<nowiki>]]</nowiki>]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5451Eyetrackers2022-08-09T08:02:42Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a tutorial video on how to setup Eyelink with a participant: [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
Monitor, camera and participant positioning should resemble this:<br />
{| class="wikitable"<br />
[[File:EyelinkParticipantSetup.jpg|frame|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
|}<br />
The original image is from the sr-research support forum. It is found [here (sign in needed) [[https://www.sr-support.com/showthread.php?tid=206<nowiki>]]</nowiki>]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5450Eyetrackers2022-08-09T08:01:56Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a tutorial video on how to setup Eyelink with a participant: [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
Monitor, camera and participant positioning should resemble this:<br />
<br />
[[File:EyelinkParticipantSetup.jpg|frame|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
The original image is from the sr-research support forum. It is found [here (sign in needed) [[https://www.sr-support.com/showthread.php?tid=206<nowiki>]]</nowiki>]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5449Eyetrackers2022-08-09T07:59:23Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a tutorial video on how to setup Eyelink with a participant: [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
Monitor, camera and participant positioning should resemble this:<br />
<br />
[[File:EyelinkParticipantSetup.jpg|frame|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5448Eyetrackers2022-08-09T07:54:46Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a tutorial video on how to setup Eyelink with a participant: [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
Monitor, camera and participant positioning should resemble this:<br />
<br />
[[File:EyelinkParticipantSetup.jpg|none|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5447Eyetrackers2022-08-09T07:54:09Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000 and Eyelink 1000 Plus<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a tutorial video on how to setup Eyelink with a participant: [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
Monitor, camera and participant positioning should resemble this:<br />
<br />
[[File:EyelinkParticipantSetup.jpg|frame|FAQ: What is the ideal configuration EyeLink 1000 / EyeLink 1000 Plus Desktop mount? Original is here on the sr-support forum (need to sign-in): https://www.sr-support.com/showthread.php?tid=206]]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=File:EyelinkParticipantSetup.jpg&diff=5446File:EyelinkParticipantSetup.jpg2022-08-09T07:50:47Z<p>H.voogd: Image is copied from the sr-research support forum:
https://www.sr-support.com/showthread.php?tid=206</p>
<hr />
<div>== Summary ==<br />
Image is copied from the sr-research support forum:<br />
<br />
https://www.sr-support.com/showthread.php?tid=206<br />
== Licensing ==<br />
{{Unknown_copyright}}</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers&diff=5445Eyetrackers2022-08-09T07:38:55Z<p>H.voogd: /* EyeLink 1000 */</p>
<hr />
<div>== SR Research ==<br />
<br />
[[image:SR_logo.jpg | right |150px]]<br />
[[File:eyelink.jpg|thumb|200px|SR Research EyeLink II]]<br />
<br />
=== EyeLink II ===<br />
<br />
<br />
The EyeLink II system consists of three miniature cameras mounted on a padded headband. Two eye cameras allow binocular eye tracking or selection of the subject’s dominant eye. <br />
<br />
An optical head-tracking camera integrated into the headband allows accurate tracking of the subject’s point of gaze without the need for a bite bar.<br />
<br />
<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|EyeLink II <br />
|-<br />
| 500 Hz binocular eye monitoring<br />
|-<br />
| 0.5º average accuracy<br />
|-<br />
| Access eye position data with 3.0 msec delay<br />
|-<br />
| 0.01º RMS resolution<br />
|-<br />
| High quality computer based or scene camera eye tracking<br />
|-<br />
| Fast and simple participant setup, calibration, and validation<br />
|}<br />
<br />
<br />
=== EyeLink 1000 ===<br />
[[image:Eyelink1000.jpg | right |150px]]<br />
http://www.sr-research.com/eyelink1000.html<br />
<br />
The core of the EyeLink 1000 eye tracker consists of a custom designed high-speed camera connected to a dedicated Host computer. Running on a real-time operating system, the Host software provides extremely fast eye sample access with incredibly low inter-sample variability, accessed via a set of programming interfaces for multiple operating systems and programming languages<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable"<br />
|-<br />
! Eyelink 1000<br />
|-<br />
| Sampling Rate || Head Supported: 2000 Hz Monocular / 1000 Hz Binocular <br />
Remote / Head Free: 500 Hz Monocular<br />
|-<br />
| Accuracy || Head Supported: 0.25º -0.5º average accuracy<br />
Remote / Head Free: 0.5º average accuracy<br />
|-<br />
| Real-time Data Access || Head Supported: 1.4 msec (SD < 0.4 msec) @ 2000 Hz<br />
Remote / Head Free: 3 msec (SD < 1.2 msec) @ 500 Hz<br />
|-<br />
| Participant Setup || Very simple and easy. Typically less than 2-5 minutes<br />
|-<br />
| Resolution || Head Supported: 0.01º RMS, micro-saccade resolution of 0.05º<br />
Remote / Head Free:0.05º RMS, saccade resolution of 0.25<br />
|}<br />
Full specifications: http://www.sr-research.com/pdf/techspec.pdf<br /><br />
<br />
[[Eyelink_1000_calibration | Matlab calibration example]]<br />
<br />
[[Eyelink1000plussetup|Eyelink 1000 plus setup]]<br />
<br />
Here is a tutorial video on how to setup Eyelink with a participant: [https://www.youtube.com/watch?v=O3z8I5y_l5E&list=PLOdF-B36TwspxRQeam0u5Yd29wOjUWcel&index=7 Eyelink setup and calibration tutorial video.]<br />
<br />
== Tobii ==<br />
<br />
[[File:tobii_logo.jpg | right]]<br />
[[File:Tobii.jpg|thumb|200px|Tobii T60]]<br />
[[File:TX300.png|thumb|250px|Tobii TX300]]<br />
<br />
<br />
<br />
===Tobii T60/T120===<br />
<br />
The Tobii T60 and T120 Eye Trackers are integrated into a 17" TFT monitor. They are ideal for all forms of eye tracking studies using screen based stimuli.<br />
<br />
There is a Tobii setup in the babylab, which is in a fixed lab setup.<br />
<br />
There are also two mobile Tobii setups. Please contact [mailto:g.lange@psych.ru.nl Gero Lange] for booking requests. Please keep in mind that these mobile setups are booked _without_ a room. If you plan to use these eyetrackers, make sure to also book a room that can be locked. You can use it in a cubicle, as long as you make sure that the eyetracker is stored in a locked room at the end of the day.<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii T60 Eye Tracker<br />
! scope="col" style="width:200px;"| Tobii T120 Eye Tracker<sup>1</sup><br />
|-<br />
| Accuracy (degrees) || 0.5 || 0.5<br />
|-<br />
| Drift (degrees) || < 0.3 || < 0.3<br />
|-<br />
| Freedom of Head Movement (cm) || 44 * 22 * 30 || 30 * 22 * 30<br />
|-<br />
| Data Rate (Hz) || 60 || 120<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes || style="background-color:#9F9;" | Yes<br />
|-<br />
| Display Size (inch) || 17 || 17<br />
|-<br />
| Display Resolution (px) || 1280 * 1024 || 1280 * 1024<br />
|-<br />
| Bright/Dark Pupil Tracking || Both - automatic optimization || Both - automatic optimization<br />
|-<br />
| Eye Tracking Server || Embedded || Embedded<br />
|-<br />
| User Camera || Built-in || Built-in<br />
|-<br />
| Audio || Built-in Speakers|| Built-in Speakers<br />
|}<br />
<br />
<sup>1</sup>The Tobii T120 Eye Tracker can also run in T60 mode with full head movement box<br />
<br />
Presentation plugin, including documentation on how to install and how to use it:<br />
<br />
http://www.visionspace.at/index.php?id=3&L=1<br />
<br />
'''Downloads'''<br />
*[[Media:Tobii TX 300.pdf|How to use a Tobii TX 300 eyetracker]]<br />
<br />
*[[Media:Getting_a_Tobii_Eye_Tracker_to_Work.pdf|Getting Started Guide]]<br />
<br />
*[[Media:TobiiEyetrackerExtension_1_1.zip|Tobii Eyetrackers Extension for use with Presentation (including samples and documentation) (zip)]]<br />
<br />
*[http://www.visionspace.at/index.php?id=3&L=1 Neurobs Presentation plugin & documentation]<br />
<br />
'''Lab setup'''<br />
<br />
http://tsgdoc.socsci.ru.nl/index.php?title=Tobii_Eye_Tracker<br />
<br />
===Tobii TX300===<br />
<br />
<br />
'''Specifications'''<br />
<br />
{| class="wikitable" <br />
|-<br />
! scope="col" style="width:200px;"|<br />
! scope="col" style="width:200px;"| Tobii TX300 Eye Tracker<sup>1</sup><br />
|-<br />
| Precision(degrees) || < 0.1<br />
|-<br />
| Accuracy (degrees) || 0.5 (Monocular), 0.4 (Binocular)<br />
|-<br />
| Freedom of Head Movement (cm) || 37 * 17 (at 65 cm distance)<br />
|-<br />
| Data Rate (Hz) || 60Hz, 120Hz or 300Hz<br />
|-<br />
| Binocular Tracking || style="background-color:#9F9;" | Yes <br />
|-<br />
| Display Size (inch) || 23<br />
|-<br />
| Display Resolution (px) || 1920 * 1080 (max 60Hz)<br />
|-<br />
| Tracking method || Dark Pupil Tracking<br />
|-<br />
| Eye Tracking Server || Embedded <br />
|-<br />
| User Camera || Built-in (640x480@30fps)<br />
|-<br />
| Audio || Built-in Speakers (3W)<br />
|}<br />
<br />
<br />
== SensoMotoric Instruments (SMI) ==<br />
[[image:SMI_logo.jpg |right]]<br />
[[File:IViewXRED.jpg|thumb|200px|SMI RED500]]<br />
[[file:eyeviewx.jpg |thumb|200px|SMI iView X]]<br />
<br />
=== SMI RED500 ===<br />
<br />
[[SMI RED 500 Eye Tracker (DCC)|How to connect SMI RED 500 eyetracker (Scheme)]]<br />
<br />
<br />
'''Downloads'''<br />
*[[Media:IView_X_SDK_Manual.pdf|IView User Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation. <br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]<br />
<br />
=== iView X ===<br />
<br />
'''Downloads'''<br />
<br />
*[[Media:IViewX.pdf | iView X Manual]]<br />
<br />
*[[Media:Eye-tracking_Presentation_iview.zip | Presentation Extension (zip)]]<br />
*[[Media:SMI-Eyetracker-Example.zip|Example Presentation Script (zip, new script since 2018-06-05)]] An example script that connects and communicates with the IViewX program. It shows two pictures side by side. Data can be analysed using BeGaze. There are a lot of explanations in the files. The comments will help understanding how to use an SMI eyetracker in Presentation.<br />
Source code: [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-Example.sce SMI-Eyetracker-Example.sce ], [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleINFO.pcl SMI-Eyetracker-ExampleINFO.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExamplePCL.pcl SMI-Eyetracker-ExamplePCL.pcl] [https://gitlab.socsci.ru.nl/h.voogd/SMI-Eyetracking-Example/blob/master/SMI-Eyetracker-ExampleSUBS.pcl SMI-Eyetracker-ExampleSUBS.pcl]<br />
<br />
*[[Media:Python.zip|Python Script (zip)]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5298Psychopy2021-03-02T08:45:09Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''python -m pip install --upgrade pip''' to upgrade the pip installer. Then type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-amd64-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''python -m pip install --upgrade pip''' to upgrade the pip installer. Then type:<br />
'''pip install -r PsychopyRequirements3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== Addition for SR-Research Eyelink users ==<br />
Eyelink users should follow the instructions above: 'Installation for other users'. Additionally, download the SR-Research Python package from here: [https://gitlab.socsci.ru.nl/h.voogd/PyLink3.7-64bit pylinkForPython-3.7.5-x64-Win]. Unzip it, find the folder called: '''pylink''' and copy it to your Pythons '''lib/site-packages''' folder.<br />
<br />
== Addition for SMI RED 500 and SMI HiSpeed Tower users ==<br />
Include this file into your project: [https://gitlab.socsci.ru.nl/h.voogd/iviewxudp iViewXudp]. This should work on both 64-bit and 32-bit Python 3 versions.<br />
<br />
<br />
== VirtualEnv ==<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
'''deactivate''' to return to the defaults.<br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from the Python36 virtualenv, type '''workon python36''' and then type '''Spyder3'''. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''call workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.<br />
<br />
== Summary for Tobii users (and others that need 32 bits Psychopy) ==<br />
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br><br />
To start your script you can: <br><br />
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br><br />
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br><br />
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br><br />
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br><br />
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5296Psychopy2021-02-19T09:16:45Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''python -m pip install --upgrade pip''' to upgrade the pip installer. Then type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-amd64-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''python -m pip install --upgrade pip''' to upgrade the pip installer. Then type:<br />
'''pip install -r PsychopyRequirements3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== Addition for SR-Research Eyelink users ==<br />
Eyelink users should follow the instructions above: 'Installation for other users'. Additionally, download the SR-Research Python package from here: [https://gitlab.socsci.ru.nl/h.voogd/PyLink3.7-64bit pylinkForPython-3.7.5-x64-Win]. Unzip it, find the folder called: '''pylink''' and copy it to your Pythons '''lib/site-packages''' folder.<br />
<br />
== Addition for SMI RED 500 and SMI HiSpeed Tower users ==<br />
Include this file into your project: [https://gitlab.socsci.ru.nl/h.voogd/iviewxudp iViewXudp]. This should work on both 64-bit and 32-bit Python 3 versions.<br />
<br />
<br />
== VirtualEnv ==<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
'''deactivate''' to return to the defaults.<br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from the Python36 virtualenv, type '''workon python36''' and then type '''Spyder3'''. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.<br />
<br />
== Summary for Tobii users (and others that need 32 bits Psychopy) ==<br />
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br><br />
To start your script you can: <br><br />
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br><br />
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br><br />
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br><br />
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br><br />
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5295Psychopy2021-02-18T15:04:44Z<p>H.voogd: Corrected link to 64-bit Python installer</p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-amd64-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychopyRequirements3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== Addition for SR-Research Eyelink users ==<br />
Eyelink users should follow the instructions above: 'Installation for other users'. Additionally, download the SR-Research Python package from here: [https://gitlab.socsci.ru.nl/h.voogd/PyLink3.7-64bit pylinkForPython-3.7.5-x64-Win]. Unzip it, find the folder called: '''pylink''' and copy it to your Pythons '''lib/site-packages''' folder.<br />
<br />
== Addition for SMI RED 500 and SMI HiSpeed Tower users ==<br />
Include this file into your project: [https://gitlab.socsci.ru.nl/h.voogd/iviewxudp iViewXudp]. This should work on both 64-bit and 32-bit Python 3 versions.<br />
<br />
<br />
== VirtualEnv ==<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
'''deactivate''' to return to the defaults.<br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from the Python36 virtualenv, type '''workon python36''' and then type '''Spyder3'''. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.<br />
<br />
== Summary for Tobii users (and others that need 32 bits Psychopy) ==<br />
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br><br />
To start your script you can: <br><br />
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br><br />
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br><br />
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br><br />
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br><br />
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5294Psychopy2021-02-16T08:42:34Z<p>H.voogd: Fixed pip install command line</p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychopyRequirements3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== Addition for SR-Research Eyelink users ==<br />
Eyelink users should follow the instructions above: 'Installation for other users'. Additionally, download the SR-Research Python package from here: [https://gitlab.socsci.ru.nl/h.voogd/PyLink3.7-64bit pylinkForPython-3.7.5-x64-Win]. Unzip it, find the folder called: '''pylink''' and copy it to your Pythons '''lib/site-packages''' folder.<br />
<br />
== Addition for SMI RED 500 and SMI HiSpeed Tower users ==<br />
Include this file into your project: [https://gitlab.socsci.ru.nl/h.voogd/iviewxudp iViewXudp]. This should work on both 64-bit and 32-bit Python 3 versions.<br />
<br />
<br />
== VirtualEnv ==<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
'''deactivate''' to return to the defaults.<br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from the Python36 virtualenv, type '''workon python36''' and then type '''Spyder3'''. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.<br />
<br />
== Summary for Tobii users (and others that need 32 bits Psychopy) ==<br />
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br><br />
To start your script you can: <br><br />
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br><br />
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br><br />
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br><br />
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br><br />
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5291Psychopy2021-02-11T16:14:42Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== Addition for SR-Research Eyelink users ==<br />
Eyelink users should follow the instructions above: 'Installation for other users'. Additionally, download the SR-Research Python package from here: [https://gitlab.socsci.ru.nl/h.voogd/PyLink3.7-64bit pylinkForPython-3.7.5-x64-Win]. Unzip it, find the folder called: '''pylink''' and copy it to your Pythons '''lib/site-packages''' folder.<br />
<br />
== Addition for SMI RED 500 and SMI HiSpeed Tower users ==<br />
Include this file into your project: [https://gitlab.socsci.ru.nl/h.voogd/iviewxudp iViewXudp]. This should work on both 64-bit and 32-bit Python 3 versions.<br />
<br />
<br />
== VirtualEnv ==<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
'''deactivate''' to return to the defaults.<br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from the Python36 virtualenv, type '''workon python36''' and then type '''Spyder3'''. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.<br />
<br />
== Summary for Tobii users (and others that need 32 bits Psychopy) ==<br />
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br><br />
To start your script you can: <br><br />
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br><br />
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br><br />
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br><br />
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br><br />
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5290Psychopy2021-02-11T16:13:22Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== Addition for SR-Research Eyelink users ==<br />
Eyelink users should follow the instructions above: 'Installation for other users'. Additionally, download the SR-Research Python package from here: [https://gitlab.socsci.ru.nl/h.voogd/PyLink3.7-64bit pylinkForPython-3.7.5-x64-Win]. Unzip it, find the folder called: '''pylink''' and copy it to your Pythons '''lib/site-packages''' folder.<br />
<br />
== Addition for SMI RED 500 and SMI HiSpeed Tower users ==<br />
Include this file into your project: [https://gitlab.socsci.ru.nl/h.voogd/iviewxudp iViewXudp]<br />
<br />
<br />
== VirtualEnv ==<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
'''deactivate''' to return to the defaults.<br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from the Python36 virtualenv, type '''workon python36''' and then type '''Spyder3'''. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.<br />
<br />
== Summary for Tobii users (and others that need 32 bits Psychopy) ==<br />
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br><br />
To start your script you can: <br><br />
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br><br />
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br><br />
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br><br />
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br><br />
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5289Psychopy2021-02-11T13:49:07Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== Addition for SR-Research Eyelink users ==<br />
<br />
Eyelink users should follow the instructions above: 'Installation for other users'. Additionally, download the SR-Research Python package from here: [https://gitlab.socsci.ru.nl/h.voogd/PyLink3.7-64bit pylinkForPython-3.7.5-x64-Win]. Unzip it, find the folder called: '''pylink''' and copy it to your Pythons '''lib/site-packages''' folder.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
'''deactivate''' to return to the defaults.<br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from the Python36 virtualenv, type '''workon python36''' and then type '''Spyder3'''. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.<br />
<br />
== Summary for Tobii users (and others that need 32 bits Psychopy) ==<br />
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br><br />
To start your script you can: <br><br />
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br><br />
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br><br />
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br><br />
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br><br />
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5255Psychopy2021-02-02T16:26:36Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
'''deactivate''' to return to the defaults.<br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from the Python36 virtualenv, type '''workon python36''' and then type '''Spyder3'''. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.<br />
<br />
== Summary for Tobii users (and others that need 32 bits Psychopy) ==<br />
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br><br />
To start your script you can: <br><br />
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br><br />
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br><br />
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br><br />
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br><br />
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5254Psychopy2021-02-02T16:23:51Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
'''deactivate''' to return to the defaults.<br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from a different virtualenv, type '''workon <virtualenv>''' and then type '''Spyder3''' in the ''Python36'' environment. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.<br />
<br />
== Summary for Tobii users (and others that need 32 bits Psychopy) ==<br />
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br><br />
To start your script you can: <br><br />
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br><br />
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br><br />
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br><br />
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br><br />
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5253Psychopy2021-02-02T16:18:08Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from a different virtualenv, type '''workon <virtualenv>''' and then type '''Spyder3''' in the ''Python36'' environment. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.<br />
<br />
== Summary for Tobii users (and others that need 32 bits Psychopy) ==<br />
Since Tobii does not support 64 bits systems and does not support Python with a version higher than 3.6, the labcomputer has a special virtualenv that is called '''Python36'''. This virtualenv contains everything that Psychopy needs to install, and it contains the '''tobii-research''' package. It also contains the packages that are needed to use the '''cv.dll''' library. <br><br />
To start your script you can: <br><br />
- start Psychopy using the icon on the desktop that uses the 32-bit version. <br><br />
- from a command window, type '''workon Python36''', then type '''Psychopy''' to start the 32 bit Psychopy version.<br><br />
- from a command window, type '''workon Python36''', then type '''Spyder3''' to start the Spyder IDE.<br><br />
- choose the ''Python 3.6 (Python36)'' python interpreter in PyCharm. <br><br />
- from a command window type '''workon Python36''', then type '''python <myscript.py>''' to start your script. Or make a batch file that does this.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5252Psychopy2021-02-02T15:59:39Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from a different virtualenv, type '''workon <virtualenv>''' and then type '''Spyder3''' in the ''Python36'' environment. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|none|PycharmInterpreters]]<br />
<br><br><br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5251Psychopy2021-02-02T15:58:41Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from a different virtualenv, type '''workon <virtualenv>''' and then type '''Spyder3''' in the ''Python36'' environment. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. It is a Python IDE. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|PycharmInterpreters]]<br />
<br><br><br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5250Psychopy2021-02-02T15:49:50Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from a different virtualenv, type '''workon <virtualenv>''' and then type '''Spyder3''' in the ''Python36'' environment. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|PycharmInterpreters]]<br />
<br><br><br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5249Psychopy2021-02-02T15:49:04Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from a different virtualenv, type '''workon <virtualenv>''' and then type '''Spyder3''' in the ''Python36'' environment. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to ''.bat'', for example, save the file as ''startmyscript.bat''.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5248Psychopy2021-02-02T15:48:00Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from a different virtualenv, type '''workon <virtualenv>''' and then type '''Spyder3''' in the ''Python36'' environment. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|PycharmInterpreters]]<br />
<br />
== Batch files == <br />
If you are working from a virtualenv, other than the default, and you don't want to open a command window, type '''workon <virtualenv>''' and type '''python <myscript.py>''' every time, you might want to make a batch file. Create a text file, type:<br><br />
'''workon <virtualenv>'''<br><br />
'''python <myscript.py>'''<br><br><br />
Save the file into the folder where your script is, but change the extension from ''.txt'' to '''.bat', for example, save the file as 'startmyscript.bat'.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5247Psychopy2021-02-02T15:38:15Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from a different virtualenv, type '''workon <virtualenv>''' and then type '''Spyder3''' in the ''Python36'' environment. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv. <br><br><br />
[[File:PycharmInterpreters.png|thumb|PycharmInterpreters]]</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=File:PycharmInterpreters.png&diff=5246File:PycharmInterpreters.png2021-02-02T15:37:32Z<p>H.voogd: </p>
<hr />
<div></div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5245Psychopy2021-02-02T15:35:38Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
== Spyder ==<br />
Spyder (Scientific Python Development Environment) is an IDE for Python. It can be run from a command prompt. If you want to use Spyder in the default Python 3.7.6 64-bits environment, you can just type '''Spyder''' from the command prompt. If you want to use Spyder from a different virtualenv, type '''workon <virtualenv>''' and then type '''Spyder3''' in the ''Python36'' environment. If you have created your own virtualenv, make sure that Spyder is installed.<br />
<br />
== PyCharm ==<br />
PyCharm is installed on our labcomputers. In the lowerright corner, it will display its current Python environment. By clicking on that name, you can change the interpreter and choose from the existing virtualenvs that PyCharm knows. Or you can add your own virtualenv.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5244Psychopy2021-02-02T15:28:31Z<p>H.voogd: </p>
<hr />
<div><br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5243Psychopy2021-02-02T15:15:53Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe] using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5242Psychopy2021-02-02T15:15:20Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install [https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.1/Git-2.17.1-64-bit.exe Git-2.17.1-64-bit.exe]Git-2.17.1.2-64-bit.exe using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5241Psychopy2021-02-02T15:11:28Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install Git-2.17.1.2-64-bit.exe using these instructions: [https://gitlab.socsci.ru.nl/h.voogd/git-2.17.1.2-64-bit.exe/-/raw/master/GitInstall.docx GitInstall.docx]. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5240Psychopy2021-02-02T15:02:36Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install Git-2.17.1.2-64-bit.exe using these instructions: GitInstall.docx:. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5239Psychopy2021-02-02T14:49:48Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing packages and might mess up other peoples projects. Instead, make your own virtualenv and install it there (use '''mkvirtualenv''' to create it, use '''workon''' to activate it, then use '''pip''' to install packages into your own virtualenv). Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install Git-2.17.1.2-64-bit.exe using these instructions: GitInstall.docx:. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
<br />
<br />
'''The information below is obsolete'''<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5238Psychopy2021-02-02T14:46:54Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing package and might mess up other peoples projects. Instead, make your own virtualenv and install it there. Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install Git-2.17.1.2-64-bit.exe using these instructions: GitInstall.docx:. Then, in<br />
''System| Advanced system settings | Environment variables'', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
<br />
<br />
'''The information below is obsolete'''<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5237Psychopy2021-02-02T14:45:25Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing package and might mess up other peoples projects. Instead, make your own virtualenv and install it there. Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
== Git, Pavlovia ==<br />
If you want to upload experiments to Pavlovia, you will need to install Git-2.17.1.2-64-bit.exe using these instructions: GitInstall.docx:. Then, in<br />
'''System| Advanced system settings | Environment variables', add the folder where ''git-daemon.exe'' is, to the PATH variable. Usually, that folder is named: 'C:\Program Files\Git\mingw64\libexec\git-core'.<br />
<br />
<br />
<br />
'''The information below is obsolete'''<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5236Psychopy2021-02-02T14:40:22Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
In our labs, we have th evirtualenvs:<br><br />
'''Python36''' that contains Python 3.6.8 32-bits, Psychopy and the tobii_research package.<br><br />
'''Python37''' that contains Python 3.7 64-bits, Psychopy and the pylink package (for use with the Eyelink eyetracker).<br><br />
and some more virtualenvs that contain packages that would otherwise interfere with Psychopy.<br />
<br />
If you need a package that is not installed on our labcomputer, contact TSG, so that we can decide to add it to our standard installation, or to install it in a separate virtualenv. Do '''not''' use ''pip install'' and install anything in an existing virtualenv. Unless it is your own virtualenv. This might interfere with existing package and might mess up other peoples projects. Instead, make your own virtualenv and install it there. Also, make a backup of your virtualenv, since when the labimage is updated, the newly created virtualenvs will be gone.<br />
<br />
<br />
<br />
<br />
<br />
'''The information below is obsolete'''<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5235Psychopy2021-02-02T14:31:31Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br><br />
'''workon''' to see a list of existing virtualenvs.<br><br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br><br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br><br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br><br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br><br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br><br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br><br />
<br><br />
<br />
<br />
<br />
<br />
'''The information below is obsolete'''<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5234Psychopy2021-02-02T14:30:39Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.6.8.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.7-64-bits PsychopyRequirements3.7.txt].Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
'''pip install -r PsychoPyDependenciesPython3.7.txt'''<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.7.txt might get outdated at some time. Please let us know.<br />
<br />
== VirtualEnv ==<br />
<br />
Some of the packages that are installed in the steps above, make it possible to make use of VirtualEnvs. A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.<br />
<br />
If you want to use virtualenvs on your on computer, In ''System| Advanced system settings | Environment variables'', make a new system variable with name '''WORKON_HOME''' and value ''C:\Users\Public\Envs\''.<br />
And make a new system variable with name: '''PROJECT_HOME''' and value ''C:\Users\Public\Projects''. Your virtualenvs will now be stored in ''C:\Users\Public\Projects'' and projects in ''C:\Users\Public\Projects''. These are also the places where virtualenvs and projects are stored on the labcomputer.<br />
<br />
Open a command window with administrator rights and type:<br />
'''workon''' to see a list of existing virtualenvs.<br />
'''workon <virtualenvname>''', where <virtualenvname> is the name of the virtualenv you want to use.<br />
'''mkvirtualenv <virtualenvname>''' to create a new and empty virtualenv.<br />
'''mkvirtualenv -p=37 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.7.6.<br />
'''mkvirtualenv -p=36 <virtualenvname>''' to create a new and empty virtualenv that uses the installed Python3.6.8.<br />
'''mkvirtualenv -p=37 --system-site-packages <virtualenvname>''' to create a new virtualenv that uses the installed Python3.7 and its site-packages.<br />
'''rmvirtualenv <virtualenvname>''' to remove the virtualenv with name <virtualenvname>.<br />
<br />
<br />
<br />
'''The information below is obsolete'''<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5233Psychopy2021-02-02T14:01:37Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path (it's an option in the installer).<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
pip install -r PsychoPyDependenciesPython3.6.8.txt<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed. You can download it here: [https://www.python.org/ftp/python/3.7.6/python-3.7.6-webinstall.exe Python3.7.6 64 bits (Windows)] or choose here: [https://www.python.org/downloads/release/python-376/ Please choose a 64 bit version.]. Run the installer and make sure to add Python to the file path (it's an option in the installer).<br />
<br />
<br />
'''The information below is obsolete'''<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5232Psychopy2021-02-02T13:52:37Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path.<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
pip install -r PsychoPyDependenciesPython3.6.8.txt<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed.<br />
<br />
<br />
'''The information below is obsolete'''<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5231Psychopy2021-02-02T13:51:53Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = content<br />
| text = '''This page is outdated.''' Please contact the TSG ([mailto:tsg@socsci.ru.nl tsg@socsci.ru.nl]) if you need help with setting up Psychopy.<br />
| image = {{{image|}}}<br />
}}<br />
<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
<br />
== Upgrade ==<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
'''The information below is obsolete'''<br />
<br />
<br />
== Installation for Tobii users ==<br />
Since Tobii does not support 64-bits and does not support Python higher than version 3.6.8, there is a 32 bits Python version 3.6.8 installed. If you want to use a Tobii Eyetracker and want to install Python and Psychopy yourself, download Python here: [https://www.python.org/ftp/python/3.6.8/python-3.6.8-webinstall.exe Python3.6.8 (Windows)] or here: [https://www.python.org/downloads/release/python-368/ List of downloads for Python3.6.8. Please choose a 32-bit version.] Run the installer, choose to add python to the file path.<br />
<br />
Download from here: [https://gitlab.socsci.ru.nl/h.voogd/psychopy-installation-on-python-3.6.8 PsychoPyDependenciesPython3.6.8.txt]. Open a command prompt (with administrator rights), go to the folder where the downloaded file is and type:<br />
pip install -r PsychoPyDependenciesPython3.6.8.txt<br />
<br />
This should install everything you need for a basic Psychopy installation. Since packages are updated once in a while, this PsychoPyDependenciesPython3.6.8.txt might get outdated at some time. Please let us know.<br />
<br />
'''Note:''' in our labs, the 64-bits Python and 64-bits Psychopy are installed as default. The 32-bits Python 3.6.8 and 32-bits Psychopy are installed in a separate ''virtualenv''. If you want to use Python3.6.8 from the command prompt, you first have to type:<br />
'''workon Python36'''<br />
After that, everything should work from Python3.6.8, including the 32-bits packages. <br />
<br />
== Installation for other users ==<br />
We recommend to use a modern 64-bit version of Python. In our labs, we currently have Python 3.7.6 64 bits installed.<br />
<br />
<br />
<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Python&diff=5191Python2021-01-21T15:05:20Z<p>H.voogd: </p>
<hr />
<div>{{Infobox software<br />
| name = Python<br />
| logo = Python-logo-generic.svg<br />
| logo size = 180px<br />
| logo alt = Python(tm)<br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = 2.7.9<br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| website = [http://www.python.org python.org]<br />
| resources = {{Infobox tsg<br />
| child = yes<br />
| header2 = Workshop<br />
| data2 = {{bulleted list<br />
| [[Workshop: Python for behavioural scientists|Python for behavioural scientists]]<br />
}}<br />
}}<br />
<br />
}}<br />
<br />
[[wikipedia:Python_(programming_language)|Python]] is a general-purpose, high-level programming language. It is also a [[wikipedia:Python_%28genus%29|type of snake]] and it is also a [[wikipedia:Python_%28Efteling%29|rollercoaster]], but one is arguably more relevant to your research than the others.<br />
<br />
<!-- Table of Contents will be generated here --><br />
<br />
'''Python on the labcomputers'''<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
'''The information below is outdated'''<br />
<br />
<br />
==Installation==<br />
<br />
===Windows (32 bit)===<br />
# Download the '''[https://www.python.org/downloads/ Win32 installer]'''<br />
# Double-click on the executable and follow the steps on your screen.<br />
<br />
==Configuration==<br />
=== Windows Environment Variables ===<br />
<pre>Computer --> Properties --> Advanced settings --> Environment Variables.</pre><br />
<br />
[[image:python_env.jpg]]<br />
<br />
Add the following Path:<br />
<br />
<pre>C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;</pre><br />
<br />
[[image:python_path.jpg]]<br />
<br />
[[image:python_path2.jpg]]<br />
<br />
===Package Management===<br />
<br />
==== pip ====<br />
After Python is installed, you can use [[wikipedia:Pip_(package_manager)|pip]] to install your required packages. '''pip is included with Python 2.7.9 or greater'''. For older versions, use the following steps to install:<br />
<br />
# Download [https://raw.github.com/pypa/pip/master/contrib/get-pip.py get-pip.py]<br />
# Execute get-pip by entering the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">python get-pip.py</code> <br />
<br />
To install a package, simply execute the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">c:\pip install PACKAGE_NAME</code><br/><br />
Replace PACKAGE_NAME with the name of the package of choice.<br />
<br />
'''Note:''' By default, packages are installed in the following folder (Windows):<br />
<pre>C:\Python27\Lib\site-packages</pre><br />
This location may differ if you have installed Python somewhere else.<br />
<br />
==== Setuptools ====<br />
For package management with setuptools, install setuptools using the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">pip install -U setuptools</code><br />
<br />
To install a package, simply execute the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">c:\easy_install PACKAGE_NAME</code><br/><br />
Replace PACKAGE_NAME with the name of the package of choice.<br />
<br />
===List of Python Packages===<br />
{| class="wikitable"<br />
|-<br />
! Python Library <br />
! Description <br />
! Installed<br />
! Installer Type<br />
! URL<br />
|-<br />
| PIL || Python Image Library || style="background-color:#9F9;" | Yes || Package Manager || http://www.pythonware.com/products/pil/ <br />
|-<br />
| SciPy || Python-based ecosystem of open-source software for mathematics, science, and engineering. || style="background-color:#9F9;" | Yes || Package Manager || http://www.scipy.org/install.html<br />
|-<br />
| PyWin32 || Python Extensions for Windows || style="background-color:#9F9;" | Yes || Windows Installer || http://sourceforge.net/projects/pywin32/files/pywin32/<br />
|-<br />
| PySerial || Serial access for Python || style="background-color:#9F9;" | Yes || Windows Installer || https://pypi.python.org/pypi/pyserial<br />
|-<br />
| wxPython || GUI Toolkit for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://www.wxpython.org/download.php#msw<br />
|-<br />
| matplotlib || 2D plotting library for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://matplotlib.org/downloads.html<br />
|-<br />
| pyo || dedicated Python module for digital signal processing || style="background-color:#9F9;" | Yes || Windows Installer || http://ajaxsoundstudio.com/software/pyo/<br />
|-<br />
| Opencv2 || Open Source Computer Vision is a library of programming functions mainly aimed at real-time computer vision || style="background-color:#9F9;" | Yes || Windows Installer || http://opencv.org/<br />
|-<br />
| PyQt || Python binding of the cross-platform GUI toolkit Qt || style="background-color:#9F9;" | Yes || Windows Installer || http://www.riverbankcomputing.co.uk/software/pyqt/download5<br />
|-<br />
| PyQtGraph || Scientific Graphics and GUI Library for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://www.pyqtgraph.org/ <br />
|-<br />
| LXML || library for processing XML and HTML in the Python language || style="background-color:#9F9;" | Yes || Package Manager || http://lxml.de/<br />
|-<br />
| PyGame || Pygame is a set of Python modules designed for writing games. || style="background-color:#9F9;" | Yes || Windows installer || http://pygame.org/news.html<br />
|-<br />
| PANDAS || Python Data Analysis Library || style="background-color:#9F9;" | Yes || Package Manager || http://pandas.pydata.org/<br />
|-<br />
| Expyriment || A Python library for congnitive and neuroscientific experiments. || style="background-color:#9F9;" | Yes || Package Manager || http://www.expyriment.org/<br />
|-<br />
| Pyparse || Parse text files in an easier and more maintainable manner || style="background-color:#9F9;" | Yes || Package Manager || https://pypi.python.org/pypi/PyParse/1.1.7<br />
|-<br />
| AVbin || media decoding/decompression library || style="background-color:#9F9;" | Yes || Windows Installer || https://code.google.com/p/avbin/<br />
|-<br />
| Pyglet || a cross-platform windowing and multimedia library for Python. || style="background-color:#9F9;" | Yes || Manual Install || [[File:Pyglet-1.1.4.zip]]<br />
|-<br />
| FreeType || Library to Render Fonts || style="background-color:#9F9;" | Yes || Manual Install || [[file:freetype.zip]]<br />
|-<br />
| Psignifit || || || ||<br />
|-<br />
| Psychopy || Psychology Software in Python || style="background-color:#9F9;" | Yes || Package Manager || http://www.psychopy.org<br />
|}<br />
<br />
For Psychopy dependancies, check the [[Psychopy]] page.<br />
<br />
=== Windows Handlers ===<br />
Check the Handlers by opening the Windows registry editor.<br />
<syntaxhighlight lang="reg" overflow:auto;"><br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_CLASSES_ROOT\Python.CompiledFile\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_CLASSES_ROOT\Python.File\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
</syntaxhighlight><br />
<br />
<br />
=== Python DLL Files ===<br />
<br />
* '''C:\Python27\DLLs\'''<br />
* Path Within the script.<br />
* '''C:\Windows\System32''' or <br />
* '''C:\Windows\SysWOW64'''<br />
<br />
== Usage ==<br />
<br />
===Example: TestArgs.py===<br />
Execute the following script within the commandline (CMD): <code style="background-color:#000; color:#fff; padding:1px 3px;">python testArgs.py a.</code><br/><br />
You should see the following result:<br />
<br />
<syntaxhighlight lang="matlab" overflow:auto;"><br />
number of argument: 2<br />
argv[0]: ./testArgs.py<br />
argv[1]: a<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
*[[Psychopy]]<br />
*[[Workshop: Python for social scientists]]<br />
<!--<br />
*[[Workshop: Python for behavioural scientists]]<br />
==References==<br />
<references /> --><br />
<br />
==External Links== <br />
*{{Official website|http://www.python.org}}</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5190Psychopy2021-01-21T14:04:22Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = notice<br />
| text = There will be a Psychopy [http://tsgdoc.socsci.ru.nl/index.php?title=Workshop:_Python_for_social_scientists workshop] in april<br />
| image = {{{image|}}}<br />
}}<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
<br />
'''Psychopy on the labcomputers'''<br />
<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
'''The information below is outdated.'''<br />
<br />
== Installation ==<br />
{{see also|Psychopy installation}}<br />
Click [http://www.psychopy.org/installation.html here] for more information on installing PsychoPy. For Radboud Social Sciences specific instructions, visit the [[Psychopy installation]] page.<br />
<br />
<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Psychopy&diff=5189Psychopy2021-01-21T14:04:00Z<p>H.voogd: </p>
<hr />
<div>{{mbox<br />
| type = notice<br />
| text = There will be a Psychopy [http://tsgdoc.socsci.ru.nl/index.php?title=Workshop:_Python_for_social_scientists workshop] in april<br />
| image = {{{image|}}}<br />
}}<br />
{{Infobox software<br />
| name = Psychopy<br />
| logo = Psychopy Logo.png<br />
| logo size = 250px<br />
| screenshot = <br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = <br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| size = <br />
| language = <br />
| genre = <br />
| license = <br />
| website = <br />
| resources = <br />
{{Infobox tsg<br />
| child = yes<br />
| downloads = {{bulleted list<br />
| [[Media:TemplatePsychopy2013.zip|Template]]<br />
}}<br />
| manuals = {{bulleted list<br />
| [https://www.socsci.ru.nl/~wilberth/psychopy/index.html Course]<br />
}}<br />
}}<br />
}}<br />
<br />
'''Python on the labcomputers'''<br />
<br />
PsychoPy is an alternative to Presentation, e-Prime and Inquisit. It is a Python library and application that allows presentation of stimuli and collection of data for a wide range of neuroscience, psychology and psychophysics experiments. When used on DCC computers PsychoPy is guaranteed to be millisecond accurate.<br />
<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
<br />
'''The information below is outdated.'''<br />
<br />
== Installation ==<br />
{{see also|Psychopy installation}}<br />
Click [http://www.psychopy.org/installation.html here] for more information on installing PsychoPy. For Radboud Social Sciences specific instructions, visit the [[Psychopy installation]] page.<br />
<br />
<br />
== Learning PsychoPy ==<br />
* [https://www.socsci.ru.nl/wilberth/psychopy/index.html psychopy tutorial website]<br />
* [[PsychoPy-Matplotlib|Combining Psychopy and Matplotlib]]<br />
<br />
== Templates ==<br />
Find the presentation Template here [[Media:TemplatePsychopy2013.zip]]<br />
<br />
== Troubleshooting ==<br />
<br />
==== Version Change to 1.85 ====<br />
<br />
If you use audio in psychopy, but you do not choose the back-end yourself (this is the default method), then sound will be played in a different, more reliable way.<br />
This may lead to slightly larger but still small latency.We do not expect this to be problematic.<br />
If you have any questions about this, come to TSG.<br />
Do you use audio in psychopy and choose your own backend with the following line:<br />
<br />
''prefs.general['audioLib'] = ['pyo']''<br />
<br />
change this<br />
<br />
''prefs.general['audioLib'] = ['sounddevice']''<br />
<br />
This may lead to slightly larger but still small latency. We do not expect this to be problematic.<br />
<br />
If you have any questions about this, come to TSG.<br />
<br />
Also see: https://github.com/psychopy/psychopy/releases/tag/1.85.0<br />
<br />
==== Version History ====<br />
<br />
For version history and bug fixes please check here: http://www.psychopy.org/changelog.html<br />
<br />
==== Google Mailing list ====<br />
<br />
For various information please click here: https://groups.google.com/forum/#!forum/psychopy-users<br />
<br />
==== GitHub Repository ====<br />
<br />
For requests / bug report / issues click here: https://github.com/psychopy/psychopy</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Python&diff=5188Python2021-01-21T14:03:25Z<p>H.voogd: </p>
<hr />
<div>{{Infobox software<br />
| name = Python<br />
| logo = Python-logo-generic.svg<br />
| logo size = 180px<br />
| logo alt = Python(tm)<br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = 2.7.9<br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| website = [http://www.python.org python.org]<br />
| resources = {{Infobox tsg<br />
| child = yes<br />
| header2 = Workshop<br />
| data2 = {{bulleted list<br />
| [[Workshop: Python for behavioural scientists|Python for behavioural scientists]]<br />
}}<br />
}}<br />
<br />
}}<br />
<br />
[[wikipedia:Python_(programming_language)|Python]] is a general-purpose, high-level programming language. It is also a [[wikipedia:Python_%28genus%29|type of snake]] and it is also a rollercoaster, but one is arguably more relevant to your research than the others.<br />
<br />
<!-- Table of Contents will be generated here --><br />
<br />
'''Python on the labcomputers'''<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
'''The information below is outdated'''<br />
<br />
<br />
==Installation==<br />
<br />
===Windows (32 bit)===<br />
# Download the '''[https://www.python.org/downloads/ Win32 installer]'''<br />
# Double-click on the executable and follow the steps on your screen.<br />
<br />
==Configuration==<br />
=== Windows Environment Variables ===<br />
<pre>Computer --> Properties --> Advanced settings --> Environment Variables.</pre><br />
<br />
[[image:python_env.jpg]]<br />
<br />
Add the following Path:<br />
<br />
<pre>C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;</pre><br />
<br />
[[image:python_path.jpg]]<br />
<br />
[[image:python_path2.jpg]]<br />
<br />
===Package Management===<br />
<br />
==== pip ====<br />
After Python is installed, you can use [[wikipedia:Pip_(package_manager)|pip]] to install your required packages. '''pip is included with Python 2.7.9 or greater'''. For older versions, use the following steps to install:<br />
<br />
# Download [https://raw.github.com/pypa/pip/master/contrib/get-pip.py get-pip.py]<br />
# Execute get-pip by entering the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">python get-pip.py</code> <br />
<br />
To install a package, simply execute the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">c:\pip install PACKAGE_NAME</code><br/><br />
Replace PACKAGE_NAME with the name of the package of choice.<br />
<br />
'''Note:''' By default, packages are installed in the following folder (Windows):<br />
<pre>C:\Python27\Lib\site-packages</pre><br />
This location may differ if you have installed Python somewhere else.<br />
<br />
==== Setuptools ====<br />
For package management with setuptools, install setuptools using the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">pip install -U setuptools</code><br />
<br />
To install a package, simply execute the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">c:\easy_install PACKAGE_NAME</code><br/><br />
Replace PACKAGE_NAME with the name of the package of choice.<br />
<br />
===List of Python Packages===<br />
{| class="wikitable"<br />
|-<br />
! Python Library <br />
! Description <br />
! Installed<br />
! Installer Type<br />
! URL<br />
|-<br />
| PIL || Python Image Library || style="background-color:#9F9;" | Yes || Package Manager || http://www.pythonware.com/products/pil/ <br />
|-<br />
| SciPy || Python-based ecosystem of open-source software for mathematics, science, and engineering. || style="background-color:#9F9;" | Yes || Package Manager || http://www.scipy.org/install.html<br />
|-<br />
| PyWin32 || Python Extensions for Windows || style="background-color:#9F9;" | Yes || Windows Installer || http://sourceforge.net/projects/pywin32/files/pywin32/<br />
|-<br />
| PySerial || Serial access for Python || style="background-color:#9F9;" | Yes || Windows Installer || https://pypi.python.org/pypi/pyserial<br />
|-<br />
| wxPython || GUI Toolkit for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://www.wxpython.org/download.php#msw<br />
|-<br />
| matplotlib || 2D plotting library for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://matplotlib.org/downloads.html<br />
|-<br />
| pyo || dedicated Python module for digital signal processing || style="background-color:#9F9;" | Yes || Windows Installer || http://ajaxsoundstudio.com/software/pyo/<br />
|-<br />
| Opencv2 || Open Source Computer Vision is a library of programming functions mainly aimed at real-time computer vision || style="background-color:#9F9;" | Yes || Windows Installer || http://opencv.org/<br />
|-<br />
| PyQt || Python binding of the cross-platform GUI toolkit Qt || style="background-color:#9F9;" | Yes || Windows Installer || http://www.riverbankcomputing.co.uk/software/pyqt/download5<br />
|-<br />
| PyQtGraph || Scientific Graphics and GUI Library for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://www.pyqtgraph.org/ <br />
|-<br />
| LXML || library for processing XML and HTML in the Python language || style="background-color:#9F9;" | Yes || Package Manager || http://lxml.de/<br />
|-<br />
| PyGame || Pygame is a set of Python modules designed for writing games. || style="background-color:#9F9;" | Yes || Windows installer || http://pygame.org/news.html<br />
|-<br />
| PANDAS || Python Data Analysis Library || style="background-color:#9F9;" | Yes || Package Manager || http://pandas.pydata.org/<br />
|-<br />
| Expyriment || A Python library for congnitive and neuroscientific experiments. || style="background-color:#9F9;" | Yes || Package Manager || http://www.expyriment.org/<br />
|-<br />
| Pyparse || Parse text files in an easier and more maintainable manner || style="background-color:#9F9;" | Yes || Package Manager || https://pypi.python.org/pypi/PyParse/1.1.7<br />
|-<br />
| AVbin || media decoding/decompression library || style="background-color:#9F9;" | Yes || Windows Installer || https://code.google.com/p/avbin/<br />
|-<br />
| Pyglet || a cross-platform windowing and multimedia library for Python. || style="background-color:#9F9;" | Yes || Manual Install || [[File:Pyglet-1.1.4.zip]]<br />
|-<br />
| FreeType || Library to Render Fonts || style="background-color:#9F9;" | Yes || Manual Install || [[file:freetype.zip]]<br />
|-<br />
| Psignifit || || || ||<br />
|-<br />
| Psychopy || Psychology Software in Python || style="background-color:#9F9;" | Yes || Package Manager || http://www.psychopy.org<br />
|}<br />
<br />
For Psychopy dependancies, check the [[Psychopy]] page.<br />
<br />
=== Windows Handlers ===<br />
Check the Handlers by opening the Windows registry editor.<br />
<syntaxhighlight lang="reg" overflow:auto;"><br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_CLASSES_ROOT\Python.CompiledFile\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_CLASSES_ROOT\Python.File\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
</syntaxhighlight><br />
<br />
<br />
=== Python DLL Files ===<br />
<br />
* '''C:\Python27\DLLs\'''<br />
* Path Within the script.<br />
* '''C:\Windows\System32''' or <br />
* '''C:\Windows\SysWOW64'''<br />
<br />
== Usage ==<br />
<br />
===Example: TestArgs.py===<br />
Execute the following script within the commandline (CMD): <code style="background-color:#000; color:#fff; padding:1px 3px;">python testArgs.py a.</code><br/><br />
You should see the following result:<br />
<br />
<syntaxhighlight lang="matlab" overflow:auto;"><br />
number of argument: 2<br />
argv[0]: ./testArgs.py<br />
argv[1]: a<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
*[[Psychopy]]<br />
*[[Workshop: Python for social scientists]]<br />
<!--<br />
*[[Workshop: Python for behavioural scientists]]<br />
==References==<br />
<references /> --><br />
<br />
==External Links== <br />
*{{Official website|http://www.python.org}}</div>H.voogdhttp://tsgdoc.socsci.ru.nl/index.php?title=Python&diff=5187Python2021-01-21T14:02:29Z<p>H.voogd: </p>
<hr />
<div>{{Infobox software<br />
| name = Python<br />
| logo = Python-logo-generic.svg<br />
| logo size = 180px<br />
| logo alt = Python(tm)<br />
| caption = <br />
| developer = <br />
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| discontinued = <br />
| latest release version = <br />
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| latest preview version = <br />
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| installed version = 2.7.9<br />
| installed version date = <!-- {{Start date and age|YYYY|MM|DD|df=yes}} --><br />
| status = Active<br />
| programming language = Python<br />
| operating system = <br />
| platform = <br />
| website = [http://www.python.org python.org]<br />
| resources = {{Infobox tsg<br />
| child = yes<br />
| header2 = Workshop<br />
| data2 = {{bulleted list<br />
| [[Workshop: Python for behavioural scientists|Python for behavioural scientists]]<br />
}}<br />
}}<br />
<br />
}}<br />
<br />
[[wikipedia:Python_(programming_language)|Python]] is a general-purpose, high-level programming language. It is also a [[wikipedia:Python_%28genus%29|type of snake]] and it is also a rollercoaster, but one is arguably more relevant to your research than the others.<br />
<br />
<!-- Table of Contents will be generated here --><br />
<br />
<br />
Since Python version 2.7 has reached end of life since January first 2020, this version is no longer installed on the PCs in the labs. Standard is now: Python 3.7 64-bits.<br />
If you still have scripts written in Python2, the scripts should be upgraded to Python 3. Most changes are probably the print statements. Print statements should always have parentheses: print('some text')<br />
Key differences between Python 2 and Python 3 are here: https://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html<br />
<br />
Psychopy 2020.2.10 has been installed in the root of the Python3.7 64-bit version. This is also the default version when 'psychopy' is typed from the command prompt. It is also the default that opens when a .py file is double-clicked. It also can be started by clicking the appropriate icon on the desktop.<br />
There is also a Psychopy 2020.2.10 installed on Python3.6 32-bits. This version has its own icon on the desktop and should be used when you are using a TOBII Eyetracker.<br />
<br />
When your script fails to load in Psychopy, because you need packages that are not installed on our labcomputers, please contact TSG.<br />
<br />
On the labcomputer, there is support for Spyder, PyCharm and Psychopy. <br />
<br />
'''The information below is outdated'''<br />
<br />
<br />
==Installation==<br />
<br />
===Windows (32 bit)===<br />
# Download the '''[https://www.python.org/downloads/ Win32 installer]'''<br />
# Double-click on the executable and follow the steps on your screen.<br />
<br />
==Configuration==<br />
=== Windows Environment Variables ===<br />
<pre>Computer --> Properties --> Advanced settings --> Environment Variables.</pre><br />
<br />
[[image:python_env.jpg]]<br />
<br />
Add the following Path:<br />
<br />
<pre>C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;</pre><br />
<br />
[[image:python_path.jpg]]<br />
<br />
[[image:python_path2.jpg]]<br />
<br />
===Package Management===<br />
<br />
==== pip ====<br />
After Python is installed, you can use [[wikipedia:Pip_(package_manager)|pip]] to install your required packages. '''pip is included with Python 2.7.9 or greater'''. For older versions, use the following steps to install:<br />
<br />
# Download [https://raw.github.com/pypa/pip/master/contrib/get-pip.py get-pip.py]<br />
# Execute get-pip by entering the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">python get-pip.py</code> <br />
<br />
To install a package, simply execute the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">c:\pip install PACKAGE_NAME</code><br/><br />
Replace PACKAGE_NAME with the name of the package of choice.<br />
<br />
'''Note:''' By default, packages are installed in the following folder (Windows):<br />
<pre>C:\Python27\Lib\site-packages</pre><br />
This location may differ if you have installed Python somewhere else.<br />
<br />
==== Setuptools ====<br />
For package management with setuptools, install setuptools using the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">pip install -U setuptools</code><br />
<br />
To install a package, simply execute the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">c:\easy_install PACKAGE_NAME</code><br/><br />
Replace PACKAGE_NAME with the name of the package of choice.<br />
<br />
===List of Python Packages===<br />
{| class="wikitable"<br />
|-<br />
! Python Library <br />
! Description <br />
! Installed<br />
! Installer Type<br />
! URL<br />
|-<br />
| PIL || Python Image Library || style="background-color:#9F9;" | Yes || Package Manager || http://www.pythonware.com/products/pil/ <br />
|-<br />
| SciPy || Python-based ecosystem of open-source software for mathematics, science, and engineering. || style="background-color:#9F9;" | Yes || Package Manager || http://www.scipy.org/install.html<br />
|-<br />
| PyWin32 || Python Extensions for Windows || style="background-color:#9F9;" | Yes || Windows Installer || http://sourceforge.net/projects/pywin32/files/pywin32/<br />
|-<br />
| PySerial || Serial access for Python || style="background-color:#9F9;" | Yes || Windows Installer || https://pypi.python.org/pypi/pyserial<br />
|-<br />
| wxPython || GUI Toolkit for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://www.wxpython.org/download.php#msw<br />
|-<br />
| matplotlib || 2D plotting library for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://matplotlib.org/downloads.html<br />
|-<br />
| pyo || dedicated Python module for digital signal processing || style="background-color:#9F9;" | Yes || Windows Installer || http://ajaxsoundstudio.com/software/pyo/<br />
|-<br />
| Opencv2 || Open Source Computer Vision is a library of programming functions mainly aimed at real-time computer vision || style="background-color:#9F9;" | Yes || Windows Installer || http://opencv.org/<br />
|-<br />
| PyQt || Python binding of the cross-platform GUI toolkit Qt || style="background-color:#9F9;" | Yes || Windows Installer || http://www.riverbankcomputing.co.uk/software/pyqt/download5<br />
|-<br />
| PyQtGraph || Scientific Graphics and GUI Library for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://www.pyqtgraph.org/ <br />
|-<br />
| LXML || library for processing XML and HTML in the Python language || style="background-color:#9F9;" | Yes || Package Manager || http://lxml.de/<br />
|-<br />
| PyGame || Pygame is a set of Python modules designed for writing games. || style="background-color:#9F9;" | Yes || Windows installer || http://pygame.org/news.html<br />
|-<br />
| PANDAS || Python Data Analysis Library || style="background-color:#9F9;" | Yes || Package Manager || http://pandas.pydata.org/<br />
|-<br />
| Expyriment || A Python library for congnitive and neuroscientific experiments. || style="background-color:#9F9;" | Yes || Package Manager || http://www.expyriment.org/<br />
|-<br />
| Pyparse || Parse text files in an easier and more maintainable manner || style="background-color:#9F9;" | Yes || Package Manager || https://pypi.python.org/pypi/PyParse/1.1.7<br />
|-<br />
| AVbin || media decoding/decompression library || style="background-color:#9F9;" | Yes || Windows Installer || https://code.google.com/p/avbin/<br />
|-<br />
| Pyglet || a cross-platform windowing and multimedia library for Python. || style="background-color:#9F9;" | Yes || Manual Install || [[File:Pyglet-1.1.4.zip]]<br />
|-<br />
| FreeType || Library to Render Fonts || style="background-color:#9F9;" | Yes || Manual Install || [[file:freetype.zip]]<br />
|-<br />
| Psignifit || || || ||<br />
|-<br />
| Psychopy || Psychology Software in Python || style="background-color:#9F9;" | Yes || Package Manager || http://www.psychopy.org<br />
|}<br />
<br />
For Psychopy dependancies, check the [[Psychopy]] page.<br />
<br />
=== Windows Handlers ===<br />
Check the Handlers by opening the Windows registry editor.<br />
<syntaxhighlight lang="reg" overflow:auto;"><br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_CLASSES_ROOT\Python.CompiledFile\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_CLASSES_ROOT\Python.File\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
</syntaxhighlight><br />
<br />
<br />
=== Python DLL Files ===<br />
<br />
* '''C:\Python27\DLLs\'''<br />
* Path Within the script.<br />
* '''C:\Windows\System32''' or <br />
* '''C:\Windows\SysWOW64'''<br />
<br />
== Usage ==<br />
<br />
===Example: TestArgs.py===<br />
Execute the following script within the commandline (CMD): <code style="background-color:#000; color:#fff; padding:1px 3px;">python testArgs.py a.</code><br/><br />
You should see the following result:<br />
<br />
<syntaxhighlight lang="matlab" overflow:auto;"><br />
number of argument: 2<br />
argv[0]: ./testArgs.py<br />
argv[1]: a<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
*[[Psychopy]]<br />
*[[Workshop: Python for social scientists]]<br />
<!--<br />
*[[Workshop: Python for behavioural scientists]]<br />
==References==<br />
<references /> --><br />
<br />
==External Links== <br />
*{{Official website|http://www.python.org}}</div>H.voogd