Python interface for a MPB VYFA amplifier
Project description
MPBC-VYFA-SF
Python interface for a MPB Communications VYFA-SF Series amplifier
Methods and attributes of the MPBAmplifier
class
enable_laser()
start laser emissiondisable_laser()
disable laser emissionget_faults()
get all faults of the amplifierget_alarms()
get all alarms of the amplifierenter_test_environment()
enter the test environment of the amplifier, required to change the SHG temperature setpointsave_all()
save settings to non-volatile memorymodel
amplifier modelserial
serial numberenabled
boolean for laser emision statusstate
laser_state
Current state of the laser; e.g.BOOSTER_ON
,OFF
etc. seeenums.py
for more.mode
seed_current
mApreamp_current
mAbooster_current
mAbooster_current_setpoint
get and set the booster current setpointshg_temperature
Cshg_temperature setpoint
get and set the shg temperature setpoint in Cseed_power
mWoutput_power
mWoutput_power_setpoint
ifpower_stabilization
is enabled (set toTrue
) this gets and sets the output power setpoint in mWpower_stabilization
enable or disable (True
orFalse
) the output power stabilization. Only settable when emission is disabled.
Example
from mpbc_vyfa_sf import MPBAmplifier
amp = MPBAmplifier(com_port = "COM4")
# get the current laser state
amp.laser_state
# get the seed power
amp.seed_power
# enable the laser
amp.enable_laser()
# get the output power
amp.output_power
# disable the laser
amp.disable_laser()
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
mpbc-vyfa-sf-0.2.0.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file mpbc-vyfa-sf-0.2.0.tar.gz
.
File metadata
- Download URL: mpbc-vyfa-sf-0.2.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.9.13 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 426274e7c19f0089e70873774fce68e6541bca7eddb7b076691430849a98b1a6 |
|
MD5 | 327b697c13b040a4499fdbfca2b18ffd |
|
BLAKE2b-256 | 26d7b45520a6ccdad59ee1dbadd021001f39290fa6fda9b3497073a19f805b87 |
File details
Details for the file mpbc_vyfa_sf-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: mpbc_vyfa_sf-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.9.13 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edbb7544f07dc900c514fbe66eaf861dfd9ae5305a7f336abd5b01c58aea8ad1 |
|
MD5 | 6ccfdc2373a7b8dfc11387f578ee9105 |
|
BLAKE2b-256 | 533927ff00b0aa35e26a327db0a8c38208c3140044df1f4b249e78e5f28b6765 |