# Toptica IBeam Smart Laser diode

class pymeasure.instruments.toptica.ibeamsmart.IBeamSmart(adapter, name='Toptica IBeam Smart laser diode', baud_rate=115200, **kwargs)

  Bases: `Instrument`

  IBeam Smart laser diode

  For the usage of the different diode driver channels, see the manual

      laser = IBeamSmart("SomeResourceString")
      laser.emission = True
      laser.ch_2.power = 1000  # µW
      laser.ch_2.enabled = True
      laser.shutdown()

  Parameters:

    - adapter – pyvisa resource name or adapter instance.

    - baud_rate – The baud rate you have set in the instrument.

    - **kwargs – Any valid key-word argument for VISAAdapter.

  ch_1
    Channel:

      `DriverChannel`

  ch_2
    Channel:

      `DriverChannel`

  ch_3
    Channel:

      `DriverChannel`

  ch_4
    Channel:

      `DriverChannel`

  ch_5
    Channel:

      `DriverChannel`

  property channel1_enabled

    Control status of Channel 1 of the laser (bool).

    Deprecated since version 0.12: Use `ch_1.enabled` instead.

  property channel2_enabled

    Control status of Channel 2 of the laser (bool).

    Deprecated since version 0.12: Use `ch_2.enabled` instead.

  check_set_errors()

    Check for errors after having gotten a property and log them.

    Checks if the last reply is only ‘[OK]’, otherwise a ValueError is raised and the read buffer is flushed because one has to assume that some communication is out of sync.

  property current

    Measure the laser diode current in mA.

  disable()

    Shutdown all laser operation.

  property emission

    Control emission status of the laser diode driver (bool).

  enable_continous()

    Enable countinous emmission mode.

  enable_pulsing()

    Enable pulsing mode.

    The optical output is controlled by a digital input signal on a dedicated connnector on the device.

  property laser_enabled

    Control emission status of the laser diode driver (bool).

    Deprecated since version 0.12: Use attr:emission instead.

  property power

    Control actual output power in µW of the laser system. In pulse mode this means that the set value might not correspond to the readback one (float up to 200000).

  read()

    Read a reply of the instrument and extract the values, if possible.

    Reads a reply of the instrument which consists of at least two lines. The initial ones are the reply to the command while the last one should be ‘[OK]’ which acknowledges that the device is ready to receive more commands.

    Note: ‘[OK]’ is always returned as last message even in case of an invalid command, where a message indicating the error is returned before the ‘[OK]’

    Value extraction: extract <value> from ‘name = <value> [unit]’. If <value> can not be identified the original string is returned.

    Returns:

      string containing the ASCII response of the instrument (without ‘[OK]’).

  property serial

    Get Serial number of the laser system.

  shutdown()

    Brings the instrument to a safe and stable state.

  property system_temp

    Measure base plate (heatsink) temperature in degree centigrade.

  property temp

    Measure the temperature of the laser diode in degree centigrade.

  property version

    Get Firmware version number.

class pymeasure.instruments.toptica.ibeamsmart.DriverChannel(parent, id)

  Bases: `Channel`

  A laser diode driver channel for the IBeam Smart laser.

  property enabled

    Control the enabled state of the driver channel.

  property power

    Set the output power in µW (float up to 200000).