Flip Mount#

class phobos.FlipMount(*args, **kwargs)[source]#

Bases: object

Class for the Thorlabs MFF101 Flip Mount.

__init__() None[source]#

Initialize the flip mount.

get_position() int[source]#

Get the current position of the flip mount.

Returns:

The current position index : 0 = up; 1 = down.

Return type:

int

move_to_position(position: int) None[source]#

Move the flip mount to the specified position.

Parameters:

position (int) – Target position index : 0 = up; 1 = down.

Raises:

ValueError – If the position is not 0 or 1.

toggle() None[source]#

Toggle the flip mount between position 0 and 1.

close() None[source]#

Close the connection to the simulated device.

Overview#

FlipMount controls a Thorlabs MFF101 flip mount with two states:

  • 0: up

  • 1: down

The class exposes methods to read the current state, move to a target state, toggle state, and close the device connection.

Configuration#

The class reads the following configuration keys:

  • flip_mount.port: serial device path (for example /dev/ttyUSBFlipMount)

  • flip_mount.stabilization_time: wait time (seconds) after each move command

Example configuration:

flip_mount:
  port: /dev/ttyUSBFlipMount
  stabilization_time: 0.5

Notes#

  • Positions are validated and must be either 0 or 1.

  • move_to_position waits for stabilization_time before reading back and printing the final state.