Official Python SDK for GigaWave™ 6000-Series Oscilloscopes.
Project description
GigaWave™ Official Python SDK
Easy-to-use Python interface for GigaWave™ 6000-Series Digital Sampling Oscilloscopes.
Quickstart
Install via pip3 install gigawave. The example.py file is an easy way to get started:
from gigawave import GigaWave
import numpy as np
import matplotlib.pyplot as plt
# Connect to scope
scope = GigaWave('/dev/ttyUSB0')
# Initialize trigger settings
scope.trigger_direction = 'rising'
scope.trigger_level = 0 # V
scope.trigger_holdoff = 100 # ns
# Read voltage on Channel 1 at T + 50 ns
print(scope.get_voltage(delay=50, channel=1))
# Create time-domain plot
delays = np.linspace(48, 50, 32)
voltages = [scope.get_voltage(delay, channel=1, calibrate_timebase=False) for delay in delays]
plt.plot(delays, voltages)
plt.xlabel('Time [ns]')
plt.ylabel('Voltage [V]')
plt.show()
# Sample CDF for Channel 1 at T + 50 ns
voltages, cdf = scope.get_cdf(delay=50, channel=1)
plt.plot(voltages, cdf)
plt.xlabel('Voltage [V]')
plt.ylabel('CDF Value')
plt.show()
Timebase Calibration
By default, the get_voltage and get_cdf commands will calibrate the internal timebase on every call.
Acquisition can be significantly sped up by skipping this step (pass calibrate_timebase = False).
If this option is used, it is the user's responsibility to calibrate the timebase on a regular basis. The required calibration frequency will vary depending on the application, and will decrease as the scope's temperature stabilizes.
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
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 gigawave-1.0.7.tar.gz.
File metadata
- Download URL: gigawave-1.0.7.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01503f49ccfa6560c1979fdc69d0752e9cf27d94687b5df8979d528fc58f132d
|
|
| MD5 |
d1d397f6c90b8a8b9ef915d4c4d245ac
|
|
| BLAKE2b-256 |
30d7d4a3da60c896a039bbe35d6b60879f4fce09ebfd110e6cbbaf32ba4bb841
|
File details
Details for the file gigawave-1.0.7-py3-none-any.whl.
File metadata
- Download URL: gigawave-1.0.7-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8afd6ff2c2f6a4e176f51ae2062d621e24f62b4ddd71910879878c49e4b72db
|
|
| MD5 |
fa162fe5dc329f60cafa776e9385434c
|
|
| BLAKE2b-256 |
daa6d4d644fe13ccf5bb21a2e1a8422d92b11dc13225fc2465dc28565c8f0fce
|