Windows 11 Ephys machine setup - theunissenlab/lab-documentation GitHub Wiki
Python setup (following this guide)
Installed choco as a package manager
iwr -useb community.chocolatey.org/install.ps1 | iex
powershell tip: to see all current local variables go to
cd ENV:
to check what paths are present in an environment go to:
(cat ENV:Path) -Split ";"
Set permenant variables like so:
[Environment]::SetEnvironmentVariable("TEST", "VALUE", "User")
or temporary viarbles like so:
$ENV:TEST = "VALUE"
We are using pyenv
to handle environments. To switch python versions simply use:
PS> pyenv global 3.10.5
PS> python -V
Python 3.10.5
PS> pyenv global 3.9.12
PS> python -V
Python 3.9.12
Added powershell command to activate environment
function envactivate ($envname) {
echo $envname
Push-Location
Set-Location $Env:ENVDIR
& $envname\Scripts\activate
Pop-Location
}
Now environments (made in $ENVDIR, or C:\Users\theunissen\Code\pyenv) can be activated by
envactivate $envname
First I installed NidaqMX from Here
had to install numpy,nidaqmx python, pyyamp
NOTE nidaqmx is not the package our implementation of pyoperant uses... we use pylibnidaqmx
To start an operant ephys experiment. First set up the experiment folder
OperantEphys/
---ExperimentName
------Configs/*.yaml
------Stimuli/<Folders>/*.wav
Once this is set up, edit the yaml config file to point to the correct experiment path and stim folders
in local_chronic.py
point to the correct config file, and run.