API Reference v9.2.0
ObjectiveChangerclass
Module: ZaberMotionMicroscopy
Represents an objective changer of a microscope. Unstable. Expect breaking changes in future releases.
Requires at least Firmware 7.32.
The following example illustrates how you can obtain an instance of this type:
import ZaberMotionAscii
import ZaberMotionMicroscopy
let connection = try await Connection.openSerialPort(portName: "COM3")
let microscope = try await Microscope.find(connection: connection)
let objectiveChanger = microscope.objectiveChangerRelated Guides:
Index
Constructor
Properties
p
p
Methods
m
try await objectiveChanger.change(objective, focusOffset = nil)Changes the objective. Runs a sequence of movements switching from the current objective to the new one. The focus stage moves to the focus datum after the objective change.
Arguments
| Name | Type | Description |
|---|---|---|
| objective | Int | Objective number starting from 1. |
| focusOffset | Measurement? | Optional offset from the focus datum. |
m
m
try await objectiveChanger.getFocusDatum(unit = Units.native)Gets the focus datum. The focus datum is the position that the focus stage moves to after an objective change. It is backed by the limit.home.offset setting.
Arguments
| Name | Type | Description |
|---|---|---|
| unit | Units | Units of datum. |
Return Value
Double The datum.m
m
m
try await objectiveChanger.setFocusDatum(datum, unit = Units.native)Sets the focus datum. The focus datum is the position that the focus stage moves to after an objective change. It is backed by the limit.home.offset setting.
Arguments
| Name | Type | Description |
|---|---|---|
| datum | Double | Value of datum. |
| unit | Units | Units of datum. |