Coder Social home page Coder Social logo

gpib_tools's Introduction

GPIB_Tools

Random GPIB utility tools in Python ...

Really, did the world really need some more random GPIB utilities?

Probably not, but I wrote them anyway. You'll need a National Instruments GPIB interface or one of the cheap clones available in eBay (hint: the real ones are £1,800 the eBay ones are £60 ... they will NOT work with the current NI drivers, however you can find the older (pre V 17.5) drivers on Archive.org

If you don't already have Python, install Python from here: https://www.python.org/downloads/

Install the Python "VISA" library to communicate with the GPIB interface

Easiest way is from the command line run: pip install pyvisa

Calibrator.py

Simple python program that will control a signal generator or two and produces a set of flatness calibration data from an HP 8592L spectrum analyser. No, sadly I haven't found a way to load it back int to the analyser automatically, you'll have to key it in, but hey, its faster than taking the readings by hand.

You'll need to edit the device numbers in the file to match your setup:

# Instruments are defined here!
# HP spectrum analyser on ID 18
sa=HPSA(rm,18)

# 0-2.7G Marconi sig gen on ID 2
sg1=MarconiSigGen(rm,2)

# 2 to 20G sig gen on ID 7
sg2=WiltronSigGen(rm,7)

Change the GPIB addresses to match your setup .. I used two sig gens from 0-2.7 GHz and then 2.7 to 20GHz ... the config should be reasonably obvious, adjust the bits at the bottom of the file to suit your needs.

CalibrationReader.py

Very similar, reads the current flatness data out of the instrument and stores it in a file, just in case you ever lose it.

gpib_tools's People

Contributors

rszemeti avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.