Matlab software used for controlling Zeiss LSM 510 META and Zeiss AxioVert 200M via Serial Port
The devices are controlled via Serial communication. The correct code words to control them can be acquired with 'Free Serial Port Monitor' by sniffing the communication between 'CanCheck' or 'ZEN' and the devices to control. The already implemented functions are described in the next section.
The Matlab class for controlling the devices is named CANControl
.
This device controls the position of the objective lens of the AxioVert 200M and is adressed using the prefix F
. You can get and set the current position and start and stop a continuous scan with a given velocity.
Commands:
FPZp
Request the current position. The read buffer has to be written out in order to get the position in hexadecimal units.FPZG1
Set the velocity of the continuous scan as hexadecimal value. A value of3E8
(1000) amounts to approximately 1.5 µm per second.FPZS-
Start a scan in negative direction.FPZS+
Start a scan in positive direction.FPZSS
Stop the scan.FPZDxxxxxx
Set the current position withxxxxxx
as the desired position in hexadecimal units. One increment corresponds to 0.025 µm.FPZt
State of scanner.0
corresponds to static focus,255
means moving lens.FPw
Status key of the current position.01
corresponds to the work position,04
means load position.FPW0
Moves the focus to the load position.FPW1
Moves the focus to the work position.
This device controls the objective, reflector, sideport etc. of the AxioVert 200M and is adressed using the prefix H
. You can set the positions of the devices.
Commands:
HPCR1,x
Set the position of the Reflector. The valuex
is the desired position with values[1, 2, 3, 4, 5]
.HPCr1,1
Get the position of the Reflector. ReturnsPHx
withx
as the position of the Reflector.HPCR2,x
Set the position of the Objective. The valuex
is the desired position with values[1, 2, 3, 4, 5, 6]
.HPCr2,1
Get the position of the Objective. ReturnsPHx
withx
as the position of the Objective.HPCR36,x
Set the position of the Tubelens. The valuex
is the desired position with values[1, 2, 3]
.HPCr36,1
Get the position of the Tubelens. ReturnsPHx
withx
as the position of the Tubelens.HPCR38,x
Set the position of the Baseport. The valuex
is the desired position with values[1, 2, 3]
.HPCr38,1
Get the position of the Baseport. ReturnsPHx
withx
as the position of the Baseport.HPCR39,x
Set the position of the Sideport. The valuex
is the desired position with values[1, 2, 3]
.HPCr39,1
Get the position of the Sideport. ReturnsPHx
withx
as the position of the Sideport.HPCR51,x
Set the position of the Mirror. The valuex
is the desired position with values[1, 2]
.HPCr51,1
Get the position of the Mirror. ReturnsPHx
withx
as the position of the Mirror.
There are more commands which are not necessary for the Axiovert 200M in Room 340.
This device controls the laser scanning module and is adressed using the prefix I
. You can control beam splitters, collimators, filters and pinholes.
Commands:
IPCr6,1
Get the position of the main beam splitter (HT). ReturnsPIxxx
withxxx
as the position of HT.IPCR6,x
Set the position of HT. The valuex
is the desired position with values[25, 19, 13, 7, 1, 43, 37, 31]
corresponding to the positions[1, 2, 3, 4, 5, 6, 7, 8]
of HT.IPCr7,1
Get the position of the secondary beam splitter 1 (NT1). ReturnsPIxxx
with ```xxx`` as the position of NT1.IPCR7,x
Set the position of NT1. The valuex
is the desired position with values[25, 19, 13, 7, 1, 43, 37, 31]
corresponding to the positions[1, 2, 3, 4, 5, 6, 7, 8]
of NT1.IPCr8,1
Get the position of the secondary beam splitter 2 (NT2). ReturnsPIxxx
withxxx
as the position of NT2.IPCR8,x
Set the position of NT2. The valuex
is the desired position with values[10, 1, 28, 19]
corresponding to the positions[1, 2, 3, 4]
of NT2.IPCr9,1
Get the position of the secondary beam splitter 3 (NT3). ReturnsPIxxx
withxxx
as the position of NT3.IPCR9,x
Set the position of NT3. The valuex
is the desired position with values[10, 1, 28, 19]
corresponding to the positions[1, 2, 3, 4]
of NT3.
Commands:
IPCr11,1
Get the position of filter wheel 2 (EF2). ReturnsPIxxx
withxxx
as the position of EF2.IPCR11,x
Set the position of EF2. The valuex
is the desired position with values[25, 31, 37, 43, 1, 7, 13, 19]
corresponding to the positions[1, 2, 3, 4, 5, 6, 7, 8]
of EF2.IPCr12,1
Get the position of filter wheel 3 (EF3). ReturnsPIxxx
withxxx
as the position of EF3.IPCR12,x
Set the position of EF3. The valuex
is the desired position with values[18, 24, 30, 36, 42, 48, 6, 12, 18]
corresponding to the positions[1, 2, 3, 4, 5, 6, 7, 8]
of EF3.IPCr14,1
Get the position of filter wheel 5 (EF5). ReturnsPIxxx
withxxx
as the position of EF5.IPCR14,x
Set the position of EF5. The valuex
is the desired position with values[1, 7, 13, 19, 25, 31, 37, 43]
corresponding to the positions[1, 2, 3, 4, 5, 6, 7, 8]
of EF5.
Commands:
-
IPCs16,1
Get the x-position of pinhole 1 (PH1). ReturnsPIxxx
withxxx
as the position of PH1. -
IPCS16,x
Set the x-position of PH1. The valuex
is the desired position with values from1
to250
. -
IPCs20,1
Get the y-position of PH1. ReturnsPIxxx
withxxx
as the position of PH1. -
IPCS20,x
Set the y-position of PH1. The valuex
is the desired position with values from1
to250
. -
IPCs24,1
Get the z-position of PH1. ReturnsPIxxx
withxxx
as the position of PH1. -
IPCS24,x
Set the z-position of PH1. The valuex
is the desired position with values from1
to36
. -
IPCs27,1
Get the diameter of PH1. ReturnsPIxxx
withxxx
as the diameter of PH1. -
IPCS27,x
Set the diameter of PH1. The valuex
is the desired diameter with values from1
to250
. -
IPCs17,1
Get the x-position of pinhole 2 (PH2). ReturnsPIxxx
withxxx
as the position of PH2. -
IPCS17,x
Set the x-position of PH2. The valuex
is the desired position with values from1
to250
. -
IPCs21,1
Get the y-position of PH2. ReturnsPIxxx
withxxx
as the position of PH2. -
IPCS21,x
Set the y-position of PH2. The valuex
is the desired position with values from1
to250
. -
IPCs28,1
Get the diameter of PH2. ReturnsPIxxx
withxxx
as the diameter of PH2. -
IPCS28,x
Set the diameter of PH2. The valuex
is the desired diameter with values from1
to250
. -
IPCs18,1
Get the x-position of pinhole 3 (PH3). ReturnsPIxxx
withxxx
as the position of PH3. -
IPCS18,x
Set the x-position of PH3. The valuex
is the desired position with values from1
to250
. -
IPCs22,1
Get the y-position of PH3. ReturnsPIxxx
withxxx
as the position of PH3. -
IPCS22,x
Set the y-position of PH3. The valuex
is the desired position with values from1
to250
. -
IPCs29,1
Get the diameter of PH3. ReturnsPIxxx
withxxx
as the diameter of PH3. -
IPCS29,x
Set the diameter of PH3. The valuex
is the desired diameter with values from1
to250
. -
IPCs19,1
Get the x-position of pinhole 4 (PH4). ReturnsPIxxx
withxxx
as the position of PH4. -
IPCS19,x
Set the x-position of PH4. The valuex
is the desired position with values from1
to250
. -
IPCs23,1
Get the y-position of PH4. ReturnsPIxxx
withxxx
as the position of PH4. -
IPCS23,x
Set the y-position of PH4. The valuex
is the desired position with values from1
to250
. -
IPCs30,1
Get the diameter of PH4. ReturnsPIxxx
withxxx
as the diameter of PH4. -
IPCS30,x
Set the diameter of PH4. The valuex
is the desired diameter with values from1
to250
.
Commands:
IPCs25,1
Get the position of collimator 1. ReturnsPIxxx
withxxx
as the position of collimator 1.IPCS25,x
Set the position of collimator 1. The valuex
is the desired position with values from1
to120
.IPCs26,1
Get the position of collimator 2. ReturnsPIxxx
withxxx
as the position of collimator 2.IPCS26,x
Set the position of collimator 2. The valuex
is the desired position with values from1
to110
.
This device controls the META detector and is adressed using the prefix C
. You can control the grating position.
Commands:
CPCs26,1
Get the position of the grating 1 (GS1). ReturnsPCxxx
withxxx
as the position of GS1.CPCS26,x
Set the position of GS1. The valuex
is the desired position with values from1
to600
.
This device controls the x- and y-position of the translation stage and is adressed using the prefix N
.
Commands:
NPXp
Get the x-position. ReturnsPNxxxxxx
withxxxxxx
as the x-position of the stage.NPYp
Get the y-position. ReturnsPNxxxxxx
withxxxxxx
as the y-position of the stage.NPXS
Stops the movement of the x-axis.NPYS
Stops the movement of the y-axis.NPXVx
Sets the velocity of the x-axis to the decimal valuex
. A value of 1 corresponds to a velocity of approximately 500 µm per second.NPYVx
Sets the velocity of the y-axis to the decimal valuex
. A value of 1 corresponds to a velocity of approximately 500 µm per second.NPXt
State of x-axis.0
corresponds to a static stage,255
means moving stage.NPYt
State of y-axis.0
corresponds to a static stage,255
means moving stage.NPXmx
Purpose unknown. Accepts value from 0 to 9 forx
, returns either 0 or 1.NPYmx
Purpose unknown. Accepts value from 0 to 9 forx
, returns either 0 or 1.NPXTxxxxxx
Set the x-position of the stage. The valuexxxxxx
is the desired position.NPYTxxxxxx
Set the y-position of the stage. The valuexxxxxx
is the desired position.