Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

(Unofficial) control library for the FY6900 function generator

FY6900 front panel

This is a small and simple control library for the FY6900 function generator. It's a implementation for the pylabdevs FunctionGenerator class.

Installation

pip install pyfy6900-tspspi

Example usage

Simple setting of predefined waveforms and parameters

import numpy as np

from pyfy6900 import fy6900
from labdevices.functiongenerator import FunctionGeneratorWaveform
from time import sleep

with fy6900.FY6900Serial("COM4", debug = True) as fg:
	print(f"Device identifies as {fg.identify()}")

	fg.set_channel_enabled(0, False)
	fg.set_channel_enabled(1, False)

	fg.set_channel_waveform(0, FunctionGeneratorWaveform.SINE)
	fg.set_channel_frequency(0, 1e3)
	fg.set_channel_offset(0, 2.5)
	fg.set_channel_amplitude(0, 5)
	fg.set_channel_enabled(0, True)

	for frq in np.arange(1, 60e6, 100):
		fg.set_channel_frequency(0, frq)
		print(f"Set new frequency {fg.get_channel_frequency(0)}")

	fg.set_channel_enabled(0, False)

Uploading arbitrary waveform generated using numpy

import numpy as np
import matplotlib.pyplot as plt

from pyfy6900 import fy6900

from time import sleep

with fy6900.FY6900Serial("COM3", debug = "True") as fg:
	fg.identify()

	t = np.linspace(0, 2 * np.pi, 8192)
	wv = (np.sin(t) + np.sin(2*t) + np.sin(3*t))

	# Display before upload
	plt.plot(t, wv)
	plt.show()

	# Uploading
	fg.upload_waveform(61, wv, normalize = True)

	# Selecting channel waveform
	fg.set_channel_waveform(0, arbitrary = 61)

Metadata

Release files for pyfy6900-tspspi 0.0.1a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfy6900-tspspi 0.0.1a2
File Size Uploaded Provenance Actions
pyfy6900_tspspi-0.0.1a2.tar.gz 7.5 kB Without provenance Details for pyfy6900_tspspi-0.0.1a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyfy6900-tspspi 0.0.1a2
File Interpreter ABI Platform Actions
pyfy6900_tspspi-0.0.1a2-py3-none-any.whl Python 3 none any Details for pyfy6900_tspspi-0.0.1a2-py3-none-any.whl

Total release size: 14.8 kB

Release files / pyfy6900_tspspi-0.0.1a2.tar.gz

Download URL pyfy6900_tspspi-0.0.1a2.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dada55241a87d6c79d260c98726cd1c0d0ec21710325f10284356b676af83016
BLAKE2b-256 checksum
How to use checksums
ae5aa830c1e94d60c2a9b5b5fc184747f4b2e702a82e3f860666a88d636dcf46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.13

Release files / pyfy6900_tspspi-0.0.1a2-py3-none-any.whl

Download URL pyfy6900_tspspi-0.0.1a2-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00bdd8756b1488caeb4cc392a718cc76ae54087492941ad2a774d93b6bcf7584
BLAKE2b-256 checksum
How to use checksums
aa9c284e0529a6179ace20a194a23e63796232ce5ac50ca3bdc1de12f4b62d87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.13

Security for pyfy6900-tspspi 0.0.1a2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page