Configuration files#
As all systems are different, certain aspects of the code including some paths and ports for the arduino may need to be changed between systems. Therefore we have included a couple of config files to handle this:
Config_path.json#
config_path.json should to be placed in the working directory
config_path.json contains the absolute or relative path to the “config folder” where all experiment-related config files are placed
Default:
FreelyMovingVR4Mice is considered to be the default working directory (local)
The local vr4mice/cfg is the default “config folder” (in case of absence of config_path.json)
Task config file#
This config file specifies the paths to DLC models and the Unity game. Please create it in the mouse_task/ directory as task_config.json. Then specify absolute paths using the following template:
Note: don’t modify config file location and key-words in .json
Rig config file#
This Config file specifies a few important things that control the setup of the rig:
The path to the python task files. As default this should be
mouse_task/The arduino Port, Baudrate
Inputs and outputs to the arduino
Specifies the path where the logged data should be saved
Creating the Rig config file#
When you come to use the GUI for the first time you will have to setup the rig config file. To do this follow these steps:
First connect the teensy to the computer using the USB cable
Then launch the GUI
Open the dropdown menu under config and click on add new config, then specify:
The serial port of the specific microcontroller (e.g. on windows, COM1)
The baud rate, specified in the arduino sketch
List the inputs that are read from the microcontroller, separated by commas. For example, this could be lever presses.
For each different command you would like to write to the microcontroller, click Add Output, and provide:
Name for the command (e.g. water). The string character associated with the command (that you have coded into the arduino sketch; e.g. W). Parameters for the command, separated by commas (e.g. duration). For the dual_valve system you want to add “l_water” and “r_water with the commands being “L” and “R”.
Add subjects as desired
Select a directory to save your data (select Browse from the dropdown menu to add a new directory)
Select your task directory