MFF101/MFF102¤
Communicate with a Motorised Filter Flip mount from Thorlabs.
MFF
(Interface)
¤
MFF(equipment: Equipment)
flowchart LR
msl.equipment_resources.thorlabs.mff.MFF[MFF]
msl.equipment.schema.Interface[Interface]
msl.equipment.schema.Interface --> msl.equipment_resources.thorlabs.mff.MFF
click msl.equipment_resources.thorlabs.mff.MFF href "" "msl.equipment_resources.thorlabs.mff.MFF"
click msl.equipment.schema.Interface href "" "msl.equipment.schema.Interface"
Communicate with a Motorised Filter Flip mount from Thorlabs.
Regular-expression patterns that are used to select this Resource when connect() is called.
manufacturer=r"Thorlabs"
model=r"MFF"
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
equipment
|
Equipment
|
An Equipment instance. |
required |
A Connection instance supports the properties that are defined in ThorlabsMotion.
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
position
property
writable
¤
position: Literal[-1, 1, 2]
Get/set the position of the Filter Flipper, either 1 or 2 (returns -1 if moving).
Setting the position using this property attribute waits for the move to complete
before returning to the calling program. If you do not want to wait, use
move_to with wait=False.
disable
¤
disable() -> None
Disable the motor so the Filter Flipper can be freely moved by hand.
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
57 58 59 | |
disconnect
¤
disconnect() -> None
Disconnect from the Filter Flipper.
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
61 62 63 64 | |
enable
¤
enable() -> None
Enable the motor so the Filter Flipper is fixed in position.
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
66 67 68 | |
get_parameters
¤
get_parameters() -> FlipperParameters
Get the operating parameters.
Returns:
| Type | Description |
|---|---|
FlipperParameters
|
The transit time, digital I/O parameters for pin 1, digital I/O parameters for pin 2. |
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
70 71 72 73 74 75 76 77 78 | |
hardware_info
¤
hardware_info() -> ThorlabsHardwareInfo
Get the hardware information about the Filter Flipper.
Returns:
| Type | Description |
|---|---|
ThorlabsHardwareInfo
|
The hardware information. |
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
80 81 82 83 84 85 86 | |
identify
¤
identify() -> None
Instruct the Filter Flipper to identify itself by flashing its LED.
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
88 89 90 | |
is_enabled
¤
is_enabled() -> bool
Check if the motor is enabled.
If enabled, power is applied to the motor so the Filter Flipper is fixed in position.
Returns:
| Type | Description |
|---|---|
bool
|
Whether the motor is enabled or disabled. |
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
92 93 94 95 96 97 98 99 100 | |
is_moving
¤
is_moving() -> bool
Check if the Filter Flipper is moving.
Returns:
| Type | Description |
|---|---|
bool
|
Whether the Filter Flipper is moving. |
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
102 103 104 105 106 107 108 | |
move_to
¤
Move the Filter Flipper to a position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
position
|
Literal[1, 2]
|
The position to move to (either |
required |
wait
|
bool
|
Whether to wait for the move to complete before returning to the calling program. |
True
|
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
set_parameters
¤
set_parameters(parameters: FlipperParameters) -> None
Set the operating parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parameters
|
FlipperParameters
|
The operating parameters. It is recommended to call get_parameters first and then update the appropriate attributes. |
required |
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | |
status
¤
status() -> int
Get the status of the Filter Flipper.
Returns:
| Type | Description |
|---|---|
int
|
The status. A 32-bit value that represents the current status of the Filter Flipper. Each of the 32 bits acts as a flag (0 or 1), simultaneously indicating 32 distinct operating conditions of the Filter Flipper. |
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
173 174 175 176 177 178 179 180 181 | |
toggle
¤
toggle(*, wait: bool = True) -> None
Toggle the position.
If at position 1 then move to position 2 (and vice versa).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wait
|
bool
|
Whether to wait for the move to complete before returning to the calling program. |
True
|
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
196 197 198 199 200 201 202 203 204 205 | |
wait_until_moved
¤
wait_until_moved() -> None
Wait until a move is complete.
Source code in packages/resources/src/msl/equipment_resources/thorlabs/mff.py
207 208 209 210 211 | |
FlipperIO
dataclass
¤
Filter Flipper Digital I/O parameters.
Attributes:
| Name | Type | Description |
|---|---|---|
operating_mode |
int
|
The operating mode:
|
signal_mode |
int
|
Input/Output signal mode. The value depends on whether
If
If
|
pulse_width |
float
|
The pulse width, in seconds. Valid range is between 0.01 and 65.535 seconds. |
FlipperParameters
dataclass
¤
Filter Flipper parameters.
Attributes:
| Name | Type | Description |
|---|---|---|
transit_time |
float
|
The time taken (in seconds) for the flipper to move from position 1 to position 2 and vice versa. The value must be in the range 0.3 to 2.8 seconds. |
dig1 |
FlipperIO
|
Digital I/O parameters for pin 1. |
dig2 |
FlipperIO
|
Digital I/O parameters for pin 2. |