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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
094e756b10c800ee9d965021e63ee091d34751160338fe7ed276e71640106501
|
|
| MD5 |
146e0040372f0e4712ce6f75abd21771
|
|
| BLAKE2b-256 |
69877b43ab3912d980a33686356a6337e41beea3e7cb97cb6daa7e1fd89f60f0
|
Provenance
The following attestation bundles were made for big_sky_yag-0.2.1.tar.gz:
Publisher:
publish.yml on ograsdijk/Big-Sky-YAG
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
big_sky_yag-0.2.1.tar.gz -
Subject digest:
094e756b10c800ee9d965021e63ee091d34751160338fe7ed276e71640106501 - Sigstore transparency entry: 1819927815
- Sigstore integration time:
-
Permalink:
ograsdijk/Big-Sky-YAG@f58abb8d1fdb80003284426ab23e2b7c16912502 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/ograsdijk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f58abb8d1fdb80003284426ab23e2b7c16912502 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ce8d468dba17ba242a15f8da5b8582828edbb30a337f8ddf6dd6d6f846da37e
|
|
| MD5 |
9ed259edfe52dbf1a8d3aba064f5baad
|
|
| BLAKE2b-256 |
6b4048967b8b415a358d0fdcdd8b2f269f603381b7b62b486958fe9da1bbe1c9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
big_sky_yag-0.2.1-py3-none-any.whl -
Subject digest:
6ce8d468dba17ba242a15f8da5b8582828edbb30a337f8ddf6dd6d6f846da37e - Sigstore transparency entry: 1819927833
- Sigstore integration time:
-
Permalink:
ograsdijk/Big-Sky-YAG@f58abb8d1fdb80003284426ab23e2b7c16912502 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/ograsdijk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f58abb8d1fdb80003284426ab23e2b7c16912502 -
Trigger Event:
push
-
Statement type: