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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file obis-laser-controller-0.0.1.tar.gz.

File metadata

  • Download URL: obis-laser-controller-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for obis-laser-controller-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a799a1e9eb770ca151474d9315891922793575da102409f52ed9f8d575ff6071
MD5 41caaeb3807a379cc1e30023d9a94a39
BLAKE2b-256 39b81849b68b57431b94fe812a181ef87a59bef71eccd664649b65fbfc0c0d8e

See more details on using hashes here.

File details

Details for the file obis_laser_controller-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: obis_laser_controller-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for obis_laser_controller-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 628ad2a630702b08f2c8b0681e2e58de7f025dfb3cf9356907897ecfe033914e
MD5 8962c0b7f41a27107b0d552945d6f08b
BLAKE2b-256 fefd4161941e8f7146ffd88be79966c8e867a63a11771e2340d1b7dea3db1f3d

See more details on using hashes here.

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