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.1.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.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: big_sky_yag-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 094e756b10c800ee9d965021e63ee091d34751160338fe7ed276e71640106501
MD5 146e0040372f0e4712ce6f75abd21771
BLAKE2b-256 69877b43ab3912d980a33686356a6337e41beea3e7cb97cb6daa7e1fd89f60f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for big_sky_yag-0.2.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: big_sky_yag-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ce8d468dba17ba242a15f8da5b8582828edbb30a337f8ddf6dd6d6f846da37e
MD5 9ed259edfe52dbf1a8d3aba064f5baad
BLAKE2b-256 6b4048967b8b415a358d0fdcdd8b2f269f603381b7b62b486958fe9da1bbe1c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for big_sky_yag-0.2.1-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