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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file big_sky_yag-0.1.0.tar.gz
.
File metadata
- Download URL: big_sky_yag-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d22cc03b33d63ecdfa551331df28c4ea0e9b9cabf425db678fa68e8c9285f5af |
|
MD5 | 47b8ad9138cc99000945591c5d8a1e6b |
|
BLAKE2b-256 | 204b41d43aa34a19cd107d90bb6c84bea015dd3577ce7a8ff0e8b727cd0d025c |
File details
Details for the file big_sky_yag-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: big_sky_yag-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e7c44727dc5f3b39faea1ac36c1032b2b2339dc104da74e11a02a8471766a75 |
|
MD5 | 1f44d4bae93444e83bbec44ad682e36d |
|
BLAKE2b-256 | a910837346bceac4cca2b89d7d7d076bbde56ff6a7a2b3682f23b79433eb95ef |