Verifying stage motions
Ensuring hardware is functioning correctly
At this point you should have an acquisition PC with MATLAB, ScanImage, and BakingTray installed in your MATLAB path. Your scanning acquisition hardware should be set up and running. You will now ensure that the hardware related to serial sectioning is functioning correctly and that BakingTray can talk to it.
Preparation
Ensure your stages are plugged in, switched on, and the drivers are installed.
Ensure the laser is connected to the PC via a serial cable (ideally) or USB-serial.
As you proceed with the steps below, make a note of which classes you used and the settings required.
The X/Y/Z Stages
The X/Y sample stages translate the sample during a tile scan and drive the sample into the blade during cutting. The Z stage (Z-jack) moves the sample up and down for cutting. Ensure that the stages and hardware aren't in a configuration where unintended motions could result in damage. Use motion control software supplied by the manufacturer to confirm the stages move as expected: that you can make large and small motions, change speed, etc.
If you are using PI stages, see the detailed instructions for setting them up.
Most devices, such as those sold by Aerotech, PI, or ThorLabs, will allow you to issue motion commands in mm. However, you may have a motor controller that is not calibrated and works on motor "ticks" that will move the device by a small fixed distance. The Z-jack on the TissueCyte 1000 is one such device. If this is the case, follow the actuator calibration steps.
Ensuring BakingTray can move the stage
Now you will ensure that BakingTray is able to interact with the stage. Close the manufacturer's control software before proceeding. The following example will connect to a PI stage via a PI C891 controller. If you have a different device you can find the name of the class which controls it here. If your device is not currently supported, you can find information on writing a control class here.
>> STAGE = genericPIstage;
>> STAGE.axisName='someName'; %Does not matter for this toy example
>> PIC891 = C891(STAGE); %Create control class
>> controllerID.interface='usb'; %We will connect via USB...
>> controllerID.ID= '116010269'; %Using the serial number of the C891Now we are ready to communicate with the device and connect to it:
If you saw no errors, you can now do stuff like move the stage:
Note!
You should ensure the stages can't produce out of bounds motions. This can be achieved using the BakingTray settings file, since maximum and minimum positions can be defined here. With PI stages it is also possible to define soft limits for the motions in PI MikroMove if you wish, but this is not necessary.
The mid-point of the Y stage motion (0 mm) should place the sample centered on the blade (although there is a BakingTray setting that allows this to be tweaked later, if you could not achieve this). The mid-point of the X stage motion (0 mm) should place the white frosted part of the slide under the objective.
Last updated