BakingTray
  • BakingTray Documentation
  • Getting Started
    • Hardware requirements
    • Known issues
    • Initial Installation
      • Software installation
      • Setting up ScanImage
    • Hardware setup
      • Motor Setup
        • PI stage setup
        • Calibrating a linear actuator
        • Verifying stage motions
      • Setting up a VT1000 vibratome
      • Setting up the laser
    • Finishing the install
      • Check the noise on your amplifiers
      • Starting BakingTray
      • Settings Files
      • Calibration
        • Basic calibrating procedures
        • Calibrating image size
        • Achieving high stitching accuracy
        • Fine-tuning positioning accuracy
        • Stitching tweak walkthrough
    • Stitching data
  • Users
    • Introduction
    • Sample preparation
    • User Guide
      • Starting BakingTray
      • Step 0: Loading the sample
      • Step 1: Setting imaging parameters
      • Step 2: Preparing the sample
      • Step 3: Selecting the imaging area
      • Step 4: Starting the acquisition
      • Step 5: Concluding the acquisition
      • Setting up checklist
      • Resuming an acquisition
      • Manual ROI acquisitions
    • Excitation choices
    • Choosing imaging settings
    • Troubleshooting
      • Hardware problems
      • Computer problems
      • Cutting problems
      • Imaging problems
    • Data structure
    • autoROI
  • Developers
    • Developers
      • Code overview
      • Developer notes
      • Motion control classes
      • The recipe file
      • Auto-ROI
      • Simulated mode
      • Contributing
    • FAQ
    • Gallery
Powered by GitBook
On this page
  • Making default settings files
  • Editing the settings file
  • Editing the system settings file
  • The default recipe
  • Finalising hardware settings
  • Calibrations
  1. Getting Started
  2. Finishing the install

Starting BakingTray

Starting BakingTray for the first time

You should by now have run through the detailed hardware checks before proceeding with the instructions on this page.

Making default settings files

At the command line run BakingTray. You will see something like this at the command prompt:

Starting construction of BT object
Can not find system settings file: making default file at C:\MATLAB\BakingTray\SETTINGS\systemSettings.yml
BT is reading default component settings

 **** Can not find a component settings file in C:\MATLAB\BakingTray\SETTINGS\
 **** Copying an empty file to this location but you will need to edit it ****

** Laser not defined in component settings file
** Cutter not defined in component settings file
** Scanner not defined in component settings file
** No motion axes defined


 BakingTray starting...
 Connecting to hardware components:

** Laser not defined in component settings file
** Cutter not defined in component settings file
** Scanner not defined in component settings file
** No motion axes defined
BT.attachMotionAxes failed to build one or more axes. Not starting BT.
Cleaning up BT object
BakingTray failed to create an instance of BT. Quitting.

Editing the settings file

  • The component settings file describes the hardware BakingTray will use.

  • Navigate to the SETTINGS sub-directory and open the componentSettings.m file in an editor. For now set the maximum and minimum stage positions to reasonably large values: we'll deal with them in detail later.

Editing the system settings file

  • The system settings file describes the system as a whole.

The default recipe

  • Also in the settings directory is a file called default_recipe.yml. The recipe files define the properties of an acquisition. When you start BakingTray, default_recipe.yml is read. You may edit this file so BakingTray starts with different defaults. You may create multiple such files and manually load one after BakingTray starts. e.g. different recipes for different organ types.

Finalising hardware settings

Be careful with the following steps. Go slowly so as not to damage your hardware.

  • Place the vibratome and blade holder with blade in the correct position with respect to the objective. e.g. So the blade centered on the objective and the blade tip is about 30 mm from the axis of the objective.

  • Assemble the stages and place an empty water bath on top.

  • You can leave the objetive off for now in order to avoid damageing it.

  • Set the X/Y stages to 0 (their mid-points) and move the XYZ stage so that the middle of the sample is under where the objective would be.

  • Bolt the stage into place.

  • Raise the water bath until the waterbath lip is level with the widest part of the blade holder. Move the Y stage and determine the maximum and minimum positions you can go without the blade holder hitting the lip of the water bath.

  • Perform the same check for the X stage. Motions of the X stage could cause the bath to hit the vibratome or the objective. You may, therefore, want the objective in place when making this measurement.

  • Carefully raise the Z stage and determine the point at which the blade comes within about 0.5 mm of the sample platform. This is is the maximum Z position.

  • Edit the config file. Restart BakingTray. Ensure the positions are honoured. You might need to restart MATLAB for the new values to be honoured.

With PI stages it's possible to define soft limits for the motions in PI Mikromove. For extra safety, set the limits in MikroMove then also set the limits in the BakingTray settings file. It's best to set slightly narrower limits in the BakingTray settings file so you will not get an out of bounds error from the stages.

Altering blade tile (pitch) will require updating the max Z axis position.

Calibrations

PreviousCheck the noise on your amplifiersNextSettings Files

Last updated 6 months ago

BakingTray failed to start but created default settings in a SETTINGS sub-directory within the BakingTray directory. You will now edit these settings files for you hardware. Before proceeding, familiarise yourself with the information on the .

Edit the file and re-run BakingTray. There are instructions in the file describing how it should be edited based on the information you gathered when .

As before, information on editing the file is .

At this point you should be able to start BakingTray without errors and, if necessary, have at least roughly tweaked the X/Y stage . The most important task right now is to ensure that the stages can not produce an motion that would cause a hardware crash:

The three-axis stage should be .

It is important that you the number of microns per pixel in ScanImage. BakingTray uses this number to figure out where to move the stages. Also note the optional procedure.

settings files
verifying the hardware
described here
PID loops
aligned with the imaging plane
accurately calibrate
fine-tuning