Skip to content

Commit 41aeebb

Browse files
committed
FEAT: update configuration instructions for MATLAB and Visual Studio; improve clarity and add sleep behavior modifications
1 parent cd0171b commit 41aeebb

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

src/software/configure_systems.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,32 @@ lang: en-US
88
## Configure new behavior rig system
99

1010
### First steps
11-
11+
1212
#### Mount cup PNI drives
1313

1414
1. From Windows Explorer, select "Map Network Drive" and enter:
1515
+ `\\cup.pni.princeton.edu\braininit\` (for braininit)
1616
+ `\\cup.pni.princeton.edu\u19_dj\` (for u19_dj)
1717
2. 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.
1818

19-
#### Install MATLAB 2019 or higher
19+
#### Install MATLAB 2020a or higher
2020

2121
#### Download and install NiDAQmx from <a href="ni.com/r/downloaddaqmx">National Instruments website </a>
2222

23-
#### Download and install Microsoft visual studio community 2019. Make sure to select the option desktop development with C++
23+
#### Download and install Microsoft Visual Studio community.
24+
1. Make sure to select a version that is compatible with the Matlab version installed which typically means ensure the VS Community year is older than the Matlab Year (e.g., VS Community 2022 for Matlab R2024a).
25+
2. Be sure to install the option desktop development with C++
2426

25-
#### Instal Git for Windows
27+
#### Install Git for Windows
2628

27-
1. Install from this <a href="https://git-for-windows.github.io/">link</a>
29+
1. Install from this <a href="https://git-for-windows.github.io/">link</a>
2830
##### Installation options:
2931
+ Use Git from the Windows Command Prompt (5th pane)
3032
+ Checkout as-is, commit as-is (6th pane)
3133

3234
#### Create ssh key to clone repositories
3335

34-
1. Open Git Bash
36+
1. Open Git Bash
3537
2. `ssh-keygen -t ed25519 -C "[email protected]"`
3638
3. Leave empty passphrase (Hit Enter two times)
3739
4. `eval "$(ssh-agent -s)"`
@@ -40,7 +42,7 @@ lang: en-US
4042
#### Add key to virmen user in github
4143

4244
1. Copy ssh public key to clipboard in Git Bash `clip < ~/.ssh/id_ed25519.pub`
43-
2. Open [https://github.com/login](github.com)
45+
2. Open [github](https://github.com/login)
4446
2. Login with vrrigs user (ask your Lab Manager for password)
4547

4648
<figure>
@@ -61,8 +63,8 @@ lang: en-US
6163

6264
#### Compiler
6365

64-
1. Install Visual Studio Code Compiler; make sure to select C++ support from the menu. <a href="https://visualstudio.microsoft.com/downloads/`">https://visualstudio.microsoft.com/downloads/</a>
65-
2. In MATLAB, Run `mex -setup -v`. This sets up the compiler. It should output something like found "Microsoft Visual C++ 2015"
66+
1. Install Visual Studio Code Compiler; make sure to select C++ support from the menu. <a href="https://visualstudio.microsoft.com/downloads/`">https://visualstudio.microsoft.com/downloads/</a>
67+
2. In MATLAB, Run `mex -setup -v`. This sets up the compiler. It should output something like found "Microsoft Visual C++ 202X"
6668

6769

6870
### U19-pipeline-matlab Repository
@@ -90,7 +92,7 @@ lang: en-US
9092
+ **Mini VR projection parameters** (Ask lab manager about these parameters)
9193
8. run `lab.utils.add_behavior_rig(RigParameters.rig)`.
9294
9. run `live_calibration` experiment (Ask lab manager about this process).
93-
10. Create a MATLAB shortcut and set **Start in** as `C:\Experiments\ViRMEn`.
95+
10. Create a MATLAB shortcut and set **Start in** as `C:\Experiments\ViRMEn`.
9496
11. Add this shortcut to the Windows task bar in the bottom.
9597

9698
<figure>
@@ -99,7 +101,7 @@ lang: en-US
99101
</figure>
100102

101103
### Behavior data backup task schedule
102-
104+
103105
1. On Windows type **"Task Scheduler"**
104106
2. Open **Task Scheduler** "App"
105107
3. On right hand side menu, click on **"Create Task"** Action
@@ -129,9 +131,14 @@ lang: en-US
129131
<img src='./assets/images/configure_systems/Action_tab_task_scheduler.png'>
130132
<center><figcaption>Task scheduler Action Tab</figcaption></center>
131133
</figure>
132-
134+
133135
7. Hit **OK** button
134136

137+
## Modify the Sleep Behaviors
138+
To prevent the screen from turning off while the subjects are training
139+
1. Under the ("Power & Sleep")[ms-settings:powersleep?activationSource=SMC-IA-4027067] (settings)[https://support.microsoft.com/en-us/windows/how-to-adjust-power-and-sleep-settings-in-windows-26f623b5-4fcc-4194-863d-b824e5ea7679] within Windows, set "Turn my screen off after" to the longest option possible.
140+
2. Additionally, set the "Make my device Sleep after" to the longest option possible.
141+
135142

136143
## Configure new recording system
137144

0 commit comments

Comments
 (0)