Skip to main content

Python interface for a Big Sky YAG Laser.

Project description

Big-Sky-YAG

Python interface for a Big Sky YAG Laser.

Example

from big_sky_yag import BigSkyYag

resource_name = "COM4"

yag = BigSkyYag(resource_name = resource_name)

# print the status of the laser
print(yag.laser_status)

# set the flashlamp frequency
yag.flashlamp.frequency = 10.0 # Hz

# set the flashlamp voltage
yag.flashlamp.voltage = 900 # V

# set the q-switch delay
yag.qswitch.delay = 150 # ns

# start the water pump
yag.pump = True

# open the shutter, activate the flashlamp and enable the q-switch
yag.shutter = True
yag.flashlamp.activate()
yag.qswitch.start()

# stop the yag from firing
yag.qswitch.stop()
yag.flashlamp.stop()

Change Firing Mode

The flashlamp and Q-Switch can be triggered either internally, externally, or in case of the Q-switch also in burst mode.

Flashlamp

  • internal trigger
    yag.flashlamp.trigger = "internal"
    
  • external trigger
    yag.flashlamp.trigger = "external"
    

Q-Switch

  • internal
    yag.qswitch.mode = "auto"
    
  • burst
    yag.qswitch.pulses = 10 # nr. pulses in burst mode
    yag.qswitch.mode = "burst"
    
  • external
    yag.qswitch.mode = "external"
    

Other commands

  • save the current configuration
    yag.save()
    
  • retrieve the serial number
    yag.serial_number
    
  • flashlamp counter
    yag.flashlamp.counter
    
  • flashlamp user counter
    yag.flashlamp.user_counter
    yag.flashlamp.user_counter_reset()
    
  • q-switch counter
    yag.qswitch.counter
    
  • q-switch user counter
    yag.qswitch.counter_user
    
  • nr. pulses to wait before starting the q-switch
    yag.qswitch.pulses_wait
    
  • single q-switch shot
    yag.qswitch.single()
    

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

big_sky_yag-0.2.0.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

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

big_sky_yag-0.2.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file big_sky_yag-0.2.0.tar.gz.

File metadata

  • Download URL: big_sky_yag-0.2.0.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for big_sky_yag-0.2.0.tar.gz
Algorithm Hash digest
SHA256 520d3d801e3707cf131c0f8baef38c44c36c9e58dad4bf8d3fe6d9c480421390
MD5 ad6010c1b29d0dffd978f63fcdeea8b4
BLAKE2b-256 4eecc5847b428da76233a9f0d08f2589aafda85fd47441932796a3e7147ba4f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for big_sky_yag-0.2.0.tar.gz:

Publisher: publish.yml on ograsdijk/Big-Sky-YAG

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file big_sky_yag-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: big_sky_yag-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for big_sky_yag-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 651ac7ef628a8d75e229b74be04fe0aa5408458a35ba987dafc2be1131058ecc
MD5 0439b618b61cc7db8f210a3e6aa34bfe
BLAKE2b-256 d11484a77cd5e3692d7b4989617f8e24baa66d4d01f926b71f09a34ffd2f7ff8

See more details on using hashes here.

Provenance

The following attestation bundles were made for big_sky_yag-0.2.0-py3-none-any.whl:

Publisher: publish.yml on ograsdijk/Big-Sky-YAG

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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