-
Notifications
You must be signed in to change notification settings - Fork 3
Configuration wizard
romainbrette edited this page Jun 8, 2017
·
8 revisions
This is a GUI that configures the hardware and the coordinate systems. The configuration file contains everything including hardware specification and coordinate systems. Alternatively, we could have a single configuration file, with automatic backups.
The sequential procedure is as follows.
- User chooses the hardware model for the manipulators. Currently we have Luigs & Neumann SM-5, SM-10.
- User chooses COM port for the manipulators from a list.
- Program tests the COM port. A command is sent (eg position check). If not working, back to 1/2.
- User chooses hardware model for the microscope. Currently we have SM-10 (integrated to manipulator) and Leica.
- User chooses COM port for the microscope (Leica) from a list.
- Program tests the COM port for the microscope.
- User defines the configuration: number of XYZ manipulators, number of XY stages.
- Program moves each axis in turn, user assigns to manipulator or stage.
Hardware configuration could be skipped if already configured.
- User selects objective in place (20x, 40x, etc). This could also be: immersed objective, objective in air.
- Without any electrode on the manipulator, the program determines the maximum and minimum values for motor coordinates on all axes.
- User puts an electrode (preferably patch electrode) on a manipulator, and puts the tip in focus on a red cross.
- Program determines manipulator by sending commands to all manipulators in turn.
- Program determines attached stages by sending commands to all stages in turn.
- Program determines the stage-to-camera matrix (including microscope Z) with movements along X and Y axes, plus compensatory movement of microscope Z.
- Program determines the manipulator-to-camera matrix with movements along XYZ axes plus compensatory movements of microscope and attached stage (if existent).
Alternatively to one full calibration for each objective, we could have a simple matrix transformation to a reference objective (camera/Z to camera/Z). Objective calibration could be done as follows:
- User puts a coverslip in focus, possibly with a cross drawn on it. Focus could be automatized.
- A photo is taken.
- User changes the objective.
- Image is focused (automatic) and photo is taken.
- Program calculates affine transformation between the two images.
With this procedure, we have a hierarchical data structure:
- Hardware configuration is general.
- Objective calibration depends on hardware but not on manipulators.
- Manipulator calibration is relative to a main objective, and is changed relatively often (when the angle is changed).
This is used to determine the bottom plane:
- User selects coverslip/chamber name.
- User focuses on 3 distant points on the coverslip.
- Program calculates coverslip plane.
(2) could be automated with an autofocus.