Module actuators: device adapters for motion devices¶
hal.Actuators device adapters shipped with MicroscoPy:
- Newport
ESP(based on the drivernewportESP)- MCCDAQ USB2600 analog output (driver
usb2600.usb2600)Time: no motion, just a time sequencePiezo: smooth voltage trajectory to drive a piezo with minimum ringingZaberASR microscope stage (driverzaber)
-
class
microscopy.device_adapters.actuators.ESP(axis, name='ESP', dir=1)[source]¶ Device adapter for Newport ESP
newportESP.Axisobjects.
-
class
microscopy.device_adapters.actuators.Piezo(daq, output=2, name='PZ', wait=0.0, dt=0.05, rate=2000.0, tf=0.1)[source]¶ This voltage Actuator moves between points along a smooth sine trajectory to drive a piezo with minimum ringing.
When calling move_to() or move_by() with wait=False, the analog output scan will be delegated to a background thread.
Parameters: - daq – USB2600 instance (or anything with a compatible ScanAO method)
- output – integer: the voltage output to use
- name (string) – a short, meaningfull name for the axis
- dt (float) – duration of the voltage ramp
- rate (float) – sampling rate for the voltage ramp
- tf – scaling factor for the USB refresh rate (see
drivers.mccdaq.usb2600)
-
class
microscopy.device_adapters.actuators.VoltOut(ao, name='V', wait=0.02)[source]¶ Analog output device adapter.
Parameters:
-
class
microscopy.device_adapters.actuators.Time(dt)[source]¶ A special Actuator that performs a scan in time.
Note
The scan_range=(start, length, step) arguments of microscope.Scan1D are in units of dt. Set start=0 to start scan immediately upon calling run(), or to a positive number for a delayed start.
Parameters: dt – time between points, in seconds.
-
class
microscopy.device_adapters.actuators.ZaberAxis(axis, name='zaber', use_mm=True)[source]¶ Device adapter for
zaber.serial.AsciiAxisobjects.Parameters: - axis – a
zaber.serial.AsciiAxisinstance - name (string) – a meaningful name (eg. “X”)
- use_mm (bool) – if True, considers that all inputs are in mm. if False, use microsteps units.
- axis – a