Skip to main content

Python interface for the NKT Photonics Basik fiber seed laser

Project description

NKT-basik

Python versions on PyPI nkt_basik version on PyPI Code style: black

Interface for NKT Photonics Basik fiber seed laser, only tested with a Y10 model.
Consists of a class Basik which has the methods to modify wavelength, frequency, modulation, etc.

Install

To use the package install with pip install nkt_basik or install from source.

Code Example

from nkt_basik import Basik

device = Basik('COM4', 1)

# get the wavelength in nm 
print(f'Device wavelength: {device.wavelength} nm')

# get the frequency in GHz
print(f'Device frequency: {device.frequency:.4f} GHz')

# get the temperature in C
print(f'Device temperature: {device.temperature:.1f} C')

# set the wavelength setpoint in nm
print('Setting the wavelength to 1086.77 nm')
device.wavelength_setpoint = 1086.77

# get the wavelength in nm 
print(f'Device wavelength: {device.wavelength} nm')

# enable emission
print('Enable emission')
device.emission = True

# enable wavelength modulation
device.modulation = True

# get device errors
print('Errors:',device.error)

# get device status
print('Status:',device.status)

# disable emission
print('Disable emission')
device.emission = False

# get device status
print('Status:',device.status)

TODO

  • more testing
  • add tests

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

nkt_basik-0.3.4.tar.gz (6.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nkt_basik-0.3.4-py3-none-any.whl (6.1 MB view details)

Uploaded Python 3

File details

Details for the file nkt_basik-0.3.4.tar.gz.

File metadata

  • Download URL: nkt_basik-0.3.4.tar.gz
  • Upload date:
  • Size: 6.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nkt_basik-0.3.4.tar.gz
Algorithm Hash digest
SHA256 66e8825f04ca76d07646be3f8df222618c5c8e5c87a791555c62ac98b1396f70
MD5 3b4c2475293f8bfebae1f50827849a88
BLAKE2b-256 bd523fec86b5255dbc988fba8e83d99e623dd6c2d85ddbdf4f249080b5b6e6ae

See more details on using hashes here.

File details

Details for the file nkt_basik-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: nkt_basik-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nkt_basik-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 37e8622c15eb11176ccc640029d1c2314a0bb9e5e9487c5e9692e4cc61b75af1
MD5 53fc67efdc44670492478f03c0a41e1f
BLAKE2b-256 2b5523fe6496d23f1e6cea9850d975d0051cc77b5e493a6dae5f10b9526f95c6

See more details on using hashes here.

Supported by

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