photons.equipment.thorlabs_flipper module

Thorlabs filter flipper (MFF101 or MFF102).

class photons.equipment.thorlabs_flipper.ThorlabsFlipper(record, **kwargs)[source]

Bases: KinesisBase

Thorlabs filter flipper (MFF101 or MFF102).

The optical component that is installed in each position can be passed in as kwargs (e.g., position_1=’ND-4.0’, position_2=’Empty’).

Parameters:
  • record (EquipmentRecord) – The equipment record.

  • **kwargs – Keyword arguments. Can be specified as attributes of an XML element in a configuration file (with the tag of the element equal to the alias of record).

connection: FilterFlipper
info()[source]

Returns the information about what is installed in each position.

For example:

{1: 'ND-4.0', 2: 'Empty'}
Return type:

dict[int, str]

get_position()[source]

Returns the current position of the flipper.

The position is either 1 or 2 (but can be 0 during a move).

Return type:

int

set_position(position, wait=True)[source]

Set the flipper to the specified position.

Parameters:
  • position (int) – The position to move to. Must be either 1 or 2.

  • wait (bool) – Whether to wait for the flipper to finish moving before returning to the calling program.

Return type:

None