Skip to main content

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' # V
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

gigawave-1.0.3.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gigawave-1.0.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file gigawave-1.0.3.tar.gz.

File metadata

  • Download URL: gigawave-1.0.3.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for gigawave-1.0.3.tar.gz
Algorithm Hash digest
SHA256 a8a381093068c2a5ddb18d5eed47c98097296770af2c54d264e5b4455a7ce079
MD5 78fa42c4f6d57799328a86036c8835f6
BLAKE2b-256 f8112c06c24f1d83984e24e0f51e01408f69bd468c2fe7515bf88ac205e20743

See more details on using hashes here.

File details

Details for the file gigawave-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: gigawave-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for gigawave-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c280923207313ad7463e5f791b208c62a61ed72c25af8d6ad9318d946e061ded
MD5 a5482309fe476e2cedd662c0d175cd7f
BLAKE2b-256 ee01b0986b8165f8d02d24bfbcdb16facaf0132677ec6f24bc4137ba91a36a4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page