Skip to main content

Controller for OBIS Lasers.

Project description

OBIS Laser Controller

Controller for OBIS Lasers.

The controller is built off of the easy_scpi. For more info about running custom commands, consult it's documentation.

Methods

  • ObisLaserController( port, timeout = 5, auto_off = True ): Creates a new laser controller on the given port. [Inherits from easy_scpi.Instrument]

  • on(): Turns the laser on.

  • off(): Turns the laser off.

  • set_power( power = 0 ): Sets the laser's power.

Properties

  • nominal_power: Nominal power of the laser.

  • max_power: Maximum power of the laser.

  • min_power: Minimum power of the laser.

  • wavelength: Wavelength of the laser.

  • power_rating: Power rating of the laser.

  • power: Present output power of the laser.

  • current: Present output current of the laser.

  • enabled(): Returns if the laser is on or off.

Example

from obis_laser_controller import ObisLaserController

# create laser controller and connect to device
laser = ObisLaserController( 'COM16' )
laser.connect()

# set power to half of nominal and turn on
laser.set_power( laser.nominal_power / 2 )
laser.on()


# turn laser off and disconnect
# NOTE: By default the laser will turn off when disconnected.
laser.off()
laser.disconnect()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obis-laser-controller-0.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

obis_laser_controller-0.0.1-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page