photons.equipment.shutter_s25120a module

Control an electronic shutter controller from Melles Griot.

class photons.equipment.shutter_s25120a.S25120AShutter(record, **kwargs)[source]

Bases: Shutter

Control an electronic shutter controller from Melles Griot.

Uses a NI-DAQ board to output a 0 or 5 volt digital signal. The ConnectionRecord.properties attribute must contain the NI-DAQ port and line value for the digital output signal (e.g., port=1; line=1)

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).

is_open()[source]

Query whether the shutter is open (True) or closed (False).

Return type:

bool

open()[source]

Open the shutter.

Return type:

None

close()[source]

Close the shutter.

Return type:

None