Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.
/ fungen Public archive
forked from pennmem/fungen

Arbitrary waveform generator tools

License

Notifications You must be signed in to change notification settings

cparcerisas/fungen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fungen

Communicate with SCPI function generators with Python and PyVISA.

Currently supported devices:

  • Agilent 33500B

Generating arbitrary waveforms

Install requirements::

conda install -c conda-forge -y --file=requirements.txt

Create a waveform as a numpy array then load it into a fungen.arb.Waveform object and upload to the device:

import numpy as np
from fungen.arb import Waveform
from fungen.device import FunctionGenerator

data = np.random.random((100,))
sample_rate = 100.
waveform = Waveform(data, sample_rate)

with FunctionGenerator("USB0::2391::9991::MY52303330::0::INSTR") as dev:
    dev.write("data:vol:clear")
    waveform.write_to_device(dev)

About

Arbitrary waveform generator tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%