pyrolab.drivers.lasers.ppcl55x.PPCL551#
- class PPCL551[source]#
Bases:
PPCL55xBaseDriver for a Pure Photonic PPCL551 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()andoff()will simply turn the laser diode on and off, not the laser itself.Examples
import time from pyrolab.drivers.lasers.ppcl550 import PPCL551 # choose the correct COM port laser = PPCL551(minWL=1569, maxWL=1625, port="COM5") # set the power wavelength and channel laser.setPower(13.5) laser.setWavelength(1570) 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 1600 nm laser.setWavelength(1600) time.sleep(10) laser.off() laser.close()
- Attributes:
- MINIMUM_WAVELENGTHfloat
The minimum wavelength of the laser in nanometers (value 1569).
- MAXIMUM_WAVELENGTHfloat
The maximum wavelength of the laser in nanometers (value 1625).
- 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 to an instrument using internally stored parameters.
close()Disconnect from the laser
connect([port, baudrate])Connects to and initializes the laser.
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.
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.