Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtambasco/agilentlightwave
https://github.com/jtambasco/agilentlightwave
8164a 8164b agilent laser lightwave python3
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jtambasco/agilentlightwave
- Owner: jtambasco
- License: mit
- Created: 2019-01-11T06:25:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-01-15T15:26:04.000Z (over 5 years ago)
- Last Synced: 2024-09-29T17:02:20.758Z (4 days ago)
- Topics: 8164a, 8164b, agilent, laser, lightwave, python3
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# agilentlightwave
**STILL UNDER DEVELOPMENT. PORTING DRIVER FROM MY OTHER LIBRARY, SO STILL SOME BUGS...**
Python GPIB driver for the Agilent Lightwave 8164A/B.
Works with power meter modules and tunable laser modules.
Documentation [here](https://agilentlightwave.readthedocs.io/en/latest/).
## Installation
First install `Linux GPIB` from https://linux-gpib.sourceforge.io/.
Be sure to install the Python 3 Linux GPIB binaries; test using
```python
import gpib
```
in Python 3,then
```
pip3 install agilentlightwave
```
## Usage
```python
mf = lw.AgilentLightWave(gpib_num=0, gpib_dev_num=18, pm_sensor_num=2)print(mf.laser.set_power_uW(100))
print(mf.power_meter.get_power_uW())start_wl = 1540 # nm
stop_wl = 1580 # nm
step_wl = 0.1 # nm
sweep_power = 0.2 # mW
sweep_speed = 10 # nm/s
power_meter_slot = 1 # 1, 2, 3 or 4
power_meter_integration_time = 20 # ms
filename_data = 'wavelength_sweep.dat'
restore_settings = True
mf.laser.wavelength_sweep(start_wl,
stop_wl,
step_wl,
sweep_power,
sweep_speed,
power_meter_slot,
power_meter_integration_time,
filename_data,
restore_settings)
```