Xavier

../_images/Xavier.png

Installation

System Requirements

  • Windows XP or newer
  • Python 3.5 with numpy, pandas, and matplotlib libraries

Tip

Download Anaconda Python 3.5 Distribution , which has all of the required libraries included

Download Instructions

  1. Download and unzip Xavier Deployment Folder
  2. Open up Xavier.exe
../_images/Xavier_open.png
  1. Setup a default directory that data will be saved to

Settings

Access Xavier Settings by navigating to File->Settings.. or by pressing Ctrl + ,

../_images/settings_dialog.png

Note

Settings cannot be changed in the middle of a session

Edit Default Save Directory

  1. Click Change Directory to setup a new save location.
../_images/change_directory.png
  1. Navigate to an existing folder or create a new folder for future data.
../_images/new_folder.png
  1. Finally, click Select Folder. The “Current Directory” will reflect updated save path
../_images/rename_and_select.png
../_images/directory_changed.png

Edit Session Setup Lists

Adding Items

Type new items into the textboxes and click Add Item (or press Enter)

../_images/additem.gif

Removing Items

Select the item from list you want to remove and click Remove Selected

../_images/removeitem.gif

Labeling COM Ports

When multiple usb devices are connected to the computer, it can be hard to keep track of which COM Port belongs to which device. To minimize confusion when connecting to serial ports, Xavier allows you to label COM Ports.

../_images/port_labeling.png

Adding Labels

  1. From the dropdown box, select the COM Port you want to add a label to
  2. Type the new label into the textbox and click Add/Edit Label (or press Enter)
../_images/addlabel.gif

Editing Labels

  1. Double-click the labeled COM Port from the list that you want to edit. A label editing dialog will appear.
  2. Type the new label into the textbox and click Change Label
../_images/editlabel.gif

Removing Labels

Select the labeled COM Port from the list that you want to remove and click Remove Selected

../_images/removelabel.gif

Waveform Parameters

Five waveform parameters (Start Delay, On Time, Off Time, Train Duration, Ramp Down) can be wirelessly changed throughout the session. The user can make changes using either a Single Shot mode with an optional ramp down or Pulse Train mode. Non-applicable parameters are automatically set to zero depending on options selected. Once the parameters are sent to and received by Cerebro, they are saved to non-volatile memory and are therefore retained between sessions.

../_images/parameter_diagram.png

Checking Current Parameters

  1. Select the appropriate Downloader Serial Port and click Connect to Downloader
../_images/connect_downloader.png
  1. With Cerebro turned off, plug the Downloader Cord into Cerebro’s micro usb port
  2. Turn on Cerebro.
../_images/connect_plug.jpg
  1. A dialog box with all of Cerebro’s parameters will appear. Additionally, the “Cerebro’s Parameters” section will automatically be updated to match the parameters currently on Cerebro.
../_images/parameters_popup.png

Changing Parameters

  1. In the “Cerebro’s Waveform Parameters” section, select desired pulse options and modify the parameters
../_images/parameter_change.png
  1. Click Send New Waveform Parameters.
  2. A confirmation dialog will appear.
../_images/send_confirm.png
  1. Once confirmed, the settings will be sent and the last sent parameters will be displayed at the bottom
../_images/last_sent.png

See also

The IR Remote can be used as an alternative to send new parameters. Additionally, it is capable of checking the current parameters saved to Cerebro’s memory.

Implant Construction Tools

Diode Characterization

Intructions here

Implant Characterization

Intructions here

Send Power Values to Cerebro

Each implant has different response curves to power levels provided by Cerebro. To output a desired light level, Cerebro must know how much current to provide. To implement a fade, Cerebro must know multiple current levels to step through such that the implant’s light output linearly decreases from a desired light output down to 0 mW. We therefore send Cerebro a vector of values that correspond to our desired light output with a linear fade to 0 mW.

  1. Select “Debug Mode” and start a new session.
  2. In the “Implant Construction Tools” section click Send Power Values to Cerebro
  3. Assuming you’ve previously characterized an implant, click Create fade vector from power meter file
  4. Input a target power into the text box and then click Select Power Meter File
  5. After choosing a file, a implant characterization graph will appear, a summary file will be saved to the same directory as the selected power meter file.
  6. The fade vector is automatically copied from the summary file into the fade vector input.
  7. Fill in the the information for Cerebro # and implant # then click Send Values
  8. Confirm you want to send new power levels to Cerbro and the values will be sent.

Running an Experiment

Starting a New Session

  1. Fill out experimental setup information.
../_images/rat_info.png
  1. Select a Base Station Serial Port.
../_images/com_port.png
  1. Click Start Session
../_images/start_session.png

See also

The dropdown menus can be edited and COM Ports that appear in the dropdown list can be labeled

Ending a Session and Saving Data

Important

  1. Before opening the rig and removing the rat, click the End Session button. “Save Sent” will be printed to the Base Station Monitor.
../_images/end_session.png
  1. Turn off Cerebro and disconnect it from the rat’s head implant
  2. Make sure the Downloader Cord is plugged into the computer
  3. Select the appropriate Serial Port and click Connect to Downloader
../_images/connect_downloader1.png
  1. Plug the Downloader Cord into Cerebro’s micro usb port
  2. Press and hold the download button
  3. While still holding down the download button, switch Cerebro on. The event log will be printed to the Download Monitor. You may release the download button once events have begun being printed to the Cerebro Monitor.
../_images/upload1.png
  1. Click Save Session button.
../_images/save_session.png
  1. After saving, a dialog will appear with a summary of the session
../_images/summary.png