pyrolab.drivers.lasers.tsl550.TSL550

Contents

pyrolab.drivers.lasers.tsl550.TSL550#

class TSL550[source]#

Bases: Laser

Driver for the Santec TSL-550 laser.

The laser must already be physically turned on 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.

Warning

An unidentifiable bug results in the return value of some functions being the setting of the laser BEFORE the update (instead of the commanded setting). To verify some value has been set to the commanded value, simply call its respective function a second time without any arguments.

Attributes:
MINIMUM_WAVELENGTHfloat

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

MAXIMUM_WAVELENGTHfloat

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

MINIMUM_POWER_DBMfloat

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

MAXIMUM_POWER_DBMfloat

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

MINIMUM_POWER_ATTENUATIONfloat

The minimum internal attenuation of the laser in dB (value 0).

MAXIMUM_POWER_ATTENUATIONfloat

The maximum internal attenuation of the laser is dB (value 30).

SWEEP_OFFint

Constant to compare against the value of sweep_status() (value 0).

SWEEP_RUNNINGint

Constant to compare against the value of sweep_status() (value 1).

SWEEP_PAUSEDint

Constant to compare against the value of sweep_status() (value 2).

SWEEP_TRIGGER_WAITint

Constant to compare against the value of sweep_status() (value 3).

SWEEP_JUMPint

Constant to compare against the value of sweep_status() (value 4).

Methods

autoconnect()

Autoconnect to an instrument using internally stored parameters.

close()

Closes the serial connection to the laser.

close_shutter()

Closes the laser's shutter.

connect([port, baudrate, terminator, ...])

Connects to and initializes the laser.

detect_devices()

Finds and returns all information needed to connect to the device.

frequency([val])

Tune the laser to a new frequency.

ident()

Query the device to identify itself.

off()

Turns off the laser diode.

on()

Turns on the laser diode.

open_shutter()

Opens the laser's shutter.

ping()

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

power_att([val])

Sets the internal attenuator value.

power_auto()

Turn on automatic power control.

power_dBm([val])

Set the output optical power in decibel-milliwatts (dBm).

power_mW([val])

Set the output optical power in milliwatts.

power_manual()

Turn on manual power control.

pyrolab_version()

Return the version of PyroLab running the device.

query(command[, query_delay])

Write a command to the TSL550.

read()

Reads a response from the TSL550.

set_behavior([instance_mode, instance_creator])

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

status([verbose])

Query the status of the laser and print its results.

sweep_delay([val])

Set the time between consecutive sweeps in continuous mode.

sweep_end_frequency([val])

Sets the end frequency of a sweep.

sweep_end_wavelength([val])

Sets the end wavelength of a sweep.

sweep_frequency(start, stop, duration[, ...])

Conduct a sweep between two wavelengths.

sweep_get_mode()

Return the current sweep configuration as a dictionary.

sweep_pause()

Pause the sweep.

sweep_resume()

Resume a paused sweep.

sweep_set_mode([continuous, twoway, ...])

Set the mode of the sweep.

sweep_speed([val])

Set the speed of the continuous sweep, in nm/s.

sweep_start([num])

Sweep between two wavelengths one or more times.

sweep_start_frequency([val])

Sets the start frequency of a sweep.

sweep_start_wavelength([val])

Sets the start wavelength of a sweep.

sweep_status()

Gets the current condition of the sweeping function.

sweep_step_frequency([val])

Set the size of each step in the stepwise sweep.

sweep_step_time([val])

Set the duration of each step in the stepwise sweep.

sweep_step_wavelength([val])

Set the size of each step in the stepwise sweep.

sweep_stop([immediate])

Prematurely quit a sweep.

sweep_wavelength(start, stop, duration[, ...])

Conduct a sweep between two wavelengths.

trigger_disable_output()

Sets DISABLE of the external trigger signal input.

trigger_enable_output()

Sets ENABLE of the external trigger signal input.

trigger_get_mode()

Reads out the currently set value for the timing of the trigger signal output.

trigger_set_mode([val])

Sets the trigger mode.

trigger_step([step])

Sets (or returns) the interval of the trigger signal output.

wavelength([val])

Sets the output wavelength, and returns nothing.

wavelength_logging()

Read the list of all the wavelength points logged into the laser's buffer.

wavelength_logging_number()

Reads the number of data points recored by wavelength logging.

write(command)

Write a command to the TSL550.