pyrolab.drivers.lasers.ppcl55x.PPCL550

Contents

pyrolab.drivers.lasers.ppcl55x.PPCL550#

class PPCL550[source]#

Bases: PPCL55xBase

Driver for a Pure Photonic PPCL550 series laser.

The laser must already be physically powered and connected to a USB port of some host computer, whether that be a local machine or one hosted by a PyroLab server. Methods such as on() and off() will simply turn the laser diode on and off, not the laser itself.

Examples

import time
from pyrolab.drivers.lasers.ppcl550 import PPCL550

# choose the correct COM port
laser = PPCL55x(port="COM6")

# set the power wavelength and channel
laser.setPower(13.5)
laser.setWavelength(1550)
laser.setChannel(1)

# turn the laser on
laser.on()
time.sleep(10)

# adjust the power to 10 dBm
laser.setPower(10)
time.sleep(10)

# change the wavelength to 1570 nm
laser.setWavelength(1570)
time.sleep(10)

laser.off()
laser.close()
Attributes:
MINIMUM_WAVELENGTHfloat

The minimum wavelength of the laser in nanometers (value 1515).

MAXIMUM_WAVELENGTHfloat

The maximum wavelength of the laser in nanometers (value 1570).

MINIMUM_POWER_DBMfloat

The minimum power of the laser in dBm (value 6).

MAXIMUM_POWER_DBMfloat

The maximum power of the laser in dBm (value 13.5).

Methods

autoconnect()

Autoconnect to an instrument using internally stored parameters.

close()

Disconnect from the laser

connect([port, baudrate])

Connects to and initializes the laser.

detect_devices()

Returns a list of connection parameters for available devices.

frequency([frequency])

Set the frequncy of the laser.

off()

Turn off the laser

on()

Turn on the laser

ping()

Returns a bool (True) to indicate that the Daemon is alive and can be communicated with.

power_dBm([power])

Set the power on the laser.

power_mW([power])

Set the power on the laser.

pyrolab_version()

Return the version of PyroLab running the device.

set_behavior([instance_mode, instance_creator])

Sets the Pyro5 behavior for the class (modified in place).

set_channel(channel)

Set the channel (should always be 1)

set_mode(mode)

Set the mode of operation for the laser

wavelength([wavelength])

Set the wavelength of the laser.