Skip to main content

No project description provided

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 # 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.flashlamp.counter
    
  • q-switch user counter
    yag.qswitch.counter_user
    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.1.0.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

big_sky_yag-0.1.0-py3-none-any.whl (7.7 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