EEG Lab Log

From MindBrainWiki
Revision as of 17:21, 3 December 2017 by Brain (talk | contribs)
Jump to: navigation, search

Purpose

The purpose of this page is to provide a public log of activity in the EEG lab. Please date your entries and please do not share any confidential information.

Log

Dec 3 2017

CRT monitor and Dell monitor were not being recognized by the new stimulus computer. Problem fixed. NVIDIA control panel should look like this,

  • Windows display settings should look like this:
  • Windows control settings should look like this:
  • Typing dxdiag.exe in the windows search bar should bring up a screen and display 1 and 2 should be the same as above.

1 November 2017

Python

You can find the Python and conda executables in the path:

  • C:\Anaconda\python
  • C:\Anaconda\Scripts\conda

The Ananconda prompt (terminal) is in the task bar, you can use that, or powershell.

Instead of using the root environment of Python 2.7 from the Anaconda prompt, please use either 1) your own environment, or 2) use the environment: python27

To use this version/environment of python, open the Anaconda prompt or powershell and type:

  • activate python27

You can install/update packages within this environment, but it is better if you create your own environment. Create zour own like this:

  • conda create --name my_python27

or, if you want to use a different version of python (one that is not the root version of 2.7),

  • conda create -n my_python36 python=3.6

where "my_python27" is your unique name. Afterwards, you can activate your own environment in the prompt whenever you want, and then manage your dependencies within your own environment without messing with anyone else's dependencies:

  • activate my_python27

You can read more about managing environments in conda here.

As of the time of writing, the following environments are located on the system:

  • dcook_python27 C:\Users\AG Villinger\AppData\Local\conda\conda\envs\dcook_python27
  • dcook_python36 C:\Users\AG Villinger\AppData\Local\conda\conda\envs\dcook_python36
  • python27 C:\Users\AG Villinger\AppData\Local\conda\conda\envs\python27
  • python36 C:\Users\AG Villinger\AppData\Local\conda\conda\envs\python36
  • root C:\ProgramData\Anaconda2

You can update the list by asking conda to list the environments:

  • conda info --envs

Nov 2 2017

show stuff in path:

  • ($env:Path).Replace(';',"`n")

set path:

  • $env:path="$env:Path;C:\Anaconda\python"
  • installed older version of pyschopy:
  • conda install -c cogsci psychopy
  • psychopy: 1.82.01-py27_0 cogsci
  • pyglet: 1.2.4-py27_0 cogsci

Sending some triggers in Python:

from psychopy import core

port = parallel.ParallelPort(address=57336)

port.setData(0)

port.setData(1)

core.wait(1.0)

port.setData(0)

Sending some triggers in Matlab:

See the functions in the path: C:\Users\AG Villinger\Desktop\Computer Tests\MATLAB_triggers