Configure behavior & recording systems First steps Mount cup PNI drives From Windows Explorer, select "Map Network Drive" and enter: \\cup.pni.princeton.edu\braininit\
(for braininit) \\cup.pni.princeton.edu\u19_dj\
(for u19_dj) Authenticate with your NetID and PU password (NOT your PNI password, which may be different). When prompted for your username, enter PRINCETON\netid (note that PRINCETON can be upper or lower case) where netid is your PU NetID. Install MATLAB 2019 or higher Download and install Microsoft visual studio community 2019. Make sure to select the option desktop development with C++ Instal Git for Windows Install from this link Installation options: Use Git from the Windows Command Prompt (5th pane) Checkout as-is, commit as-is (6th pane) Create ssh key to clone repositories Open Git Bash ssh-keygen -t ed25519 -C "vrrigsbi@princeton.edu"
Leave empty passphrase (Hit Enter two times) eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
Add key to virmen user in github Copy ssh public key to clipboard in Git Bash clip < ~/.ssh/id_ed25519.pub
Open https://github.com/login Login with vrrigs user (ask your Lab Manager for password) Vrrigs GitHub login Access Settings -> SSH and GPG Keys Vrrigs ssh keys section Click New SSH Key
button Add a meaningful title to the key and paste public key from the clipboard in "Key" text area. Click Add SSH Key
button Compiler Install Visual Studio Code Compiler; make sure to select C++ support from the menu. https://visualstudio.microsoft.com/downloads/ In MATLAB, Run mex -setup -v
. This sets up the compiler. It should output something like found "Microsoft Visual C++ 2015" U19-pipeline-matlab Repository Open Git Bash and execute: cd /c/Experiments
Clone U19-pipeline-matlab Repository, git clone git@github.com:BrainCOGS/U19-pipeline-matlab.git
MATLAB Instructions Run dj_initial_conf(0)
Insert user and password for the DB Virmen Repository Create C:\Experiments
directory Open Git Bash and execute: cd /c/Experiments
. Execute in git config --global user.email "alvaroluna.pni@gmail.com"
. Clone Virmen Repository, called TankMouseVR git clone https://github.com/BrainCOGS/TankMouseVR.git
. Rename directory C:\Experiments\TankMouseVR
to C:\Experiments\ViRMEn
. MATLAB Instructions run install_virmen
inside C:\Experiments\ViRMEn
If compilation fails. Run mex -setup c++
to select Visual Studio C++ Compiler Open file C:\Experiments\ViRMEn\RigParameters.m
and edit corresponding variables: rig: (RigName on the format: Room#-"Rig"#-T
) rig_type: (miniVR
or NormalVR
) add NIDAQ Channles in corresponding variables (Ask lab manager about these parameters) Mini VR projection parameters (Ask lab manager about these parameters) run lab.utils.add_behavior_rig(RigParameters.rig)
. run live_calibration
experiment (Ask lab manager about this process). Create a MATLAB shortcut and set Start in as C:\Experiments\ViRMEn
. Add this shortcut to the Windows task bar in the bottom. MATLAB Shorcut example Behavior data backup task schedule On Windows type "Task Scheduler" Open Task Scheduler "App" On right hand side menu, click on "Create Task" Action Task scheduler menu Name new task as new_data_backup Task scheduler General Tab Add a trigger to run task daily at 11:00 pm Task scheduler Trigger Tab Add an action: add this line to the Program/script edit: C:\Experiments\U19-pipeline-matlab\scripts\cmd_copy_behavior_files
Task scheduler Action Tab Hit OK button First install all things necessary for appropiate recording modality. (Spike GLX for electrophysiology, ScanImage for imaging). From Windows Explorer, select "Map Network Drive" and enter: \\cup.pni.princeton.edu\braininit\
(for braininit) \\cup.pni.princeton.edu\u19_dj\
(for u19_dj) Authenticate with your NetID and PU password (NOT your PNI password, which may be different). When prompted for your username, enter PRINCETON\netid (note that PRINCETON can be upper or lower case) where netid is your PU NetID. Copy Automation GUI files: copy \\cup.pni.princeton.edu\braininit\Shared\AutomationGUI_Installation\AutomationGUI_update
to the Desktop. Run Desktop\AutomationGUI_update\firstTimeAutomationGUI.BAT
Install git bash and anaconda from it. Anaconda avanced options step On Anaconda advanced options step: check "Add Anaconda3 to my PATH environment variable" checkbox. Run Desktop\AutomationGUI_update\update_AutomationGUI.BAT
Follow instructions to install Recording Automation GUI. (Also called Workflow Console GUI). Anaconda avanced options step Register recording system On a computer with access to the database (e.g. any Rig Computer). Open MATLAB Execute: lab.utils.add_recording_system((recording_system_name), (modality))
where: recording_system_name: (on the format: Room#-Recording
). modality: (one of the following: electrophysiology, 2photon, 3photon, mesoscope
).