herosdevices.hardware.toptica.clock_laser
=========================================

.. py:module:: herosdevices.hardware.toptica.clock_laser

.. autoapi-nested-parse::

   Drivers for the Toptica Clock Laser System (CLS) modules.





Module Contents
---------------

.. py:class:: Bridge(address: str, freq_max: float, freq_min: float, timeout: float = 1.0)

   Bases: :py:obj:`herosdevices.interfaces.atomiq.RFSource`, :py:obj:`herosdevices.core.templates.SerialDeviceTemplate`


   Driver for Toptica Clock Laser CLS Bridge module.

   This class controls the CLS Bridge AOM (Acousto-Optic Modulator) module for Toptica Clock Lasers.
   The CLS Bridge allows precise control of the laser frequency through RF signal modulation.

   .. attribute:: freq_max

      Maximum frequency limit of the AOM in Hz (RF signal).

      :type: float

   .. attribute:: freq_min

      Minimum frequency limit of the AOM in Hz (RF signal).

      :type: float

   .. note::

      All frequencies are specified in terms of the RF signal, the diffracted light experiences double the
      frequency shift due to the double-pass configuration.


   .. py:attribute:: freq_max
      :type:  float


   .. py:attribute:: freq_min
      :type:  float


   .. py:attribute:: frequency_slope
      :type:  float


   .. py:attribute:: status
      :type:  str


   .. py:property:: frequency
      :type: float


      Get the current frequency setting in Hz (RF signal).

      :returns: Current frequency in Hz.
      :rtype: float


   .. py:method:: ramp_to(frequency_end: float, slope: float = 1000000.0) -> float

      Ramp the frequency to a target value with a specified slope.

      This method changes the frequency gradually according to the specified slope.

      :param frequency_end: Target frequency in Hz (RF signal). Must be within [freq_min, freq_max].
      :param slope: Ramping slope in Hz/s (default: 1 MHz/s).

      :returns: Time required for the ramp to complete in seconds.
      :rtype: float

      .. note::

         The returned value is the calculated time for the ramp to complete. It is the
         responsibility of the caller to wait for this duration before assuming the ramp
         is complete. The actual ramping is handled by the device hardware.



   .. py:method:: ramp(duration: float, frequency_start: float = float('nan'), frequency_end: float = float('nan'), amplitude_start: float = float('nan'), amplitude_end: float = float('nan'), ramp_timestep: float = float('nan'), ramp_steps: numpy.int32 = -1) -> None

      Ramp the frequency over a given duration.

      :param duration: ramp duration [s]
      :param frequency_start: initial frequency [Hz]
      :param frequency_end: end frequency [Hz]
      :param amplitude_start: Not used
      :param amplitude_end: Not used
      :param ramp_timestep: Not used
      :param ramp_steps: Not used

      .. note::

         The ramp is executed by the device hardware. This method returns as soon as the slew rate and the
         target frequency are set; it does not wait for `duration`. The caller is responsible for waiting
         before assuming the ramp is complete.



   .. py:method:: get_status_description() -> str

      Get the detailed status description of the FNC Bridge.

      :returns: Detailed status description from the device.
      :rtype: str



   .. py:attribute:: amplitude
      :type:  float
      :value: 0.1



   .. py:attribute:: phase
      :type:  float
      :value: 0.0



   .. py:attribute:: amp_max
      :type:  float
      :value: 1.0



   .. py:attribute:: amp_min
      :type:  float
      :value: 0.0



   .. py:attribute:: default_ramp_steps
      :type:  int
      :value: 30



   .. py:attribute:: blind
      :type:  bool
      :value: False



   .. py:method:: set_parameter(value: float, channel: str | None = None) -> None

      Set parameter with given name to given value.



   .. py:attribute:: address


   .. py:attribute:: connection


