Giter Site home page Giter Site logo

hp_5316x's Introduction

HP5316x

HP 5316x universal counter driver for Python (HP 5316a, HP 5316b)

Needs the following non-standard packages:

  • pyvisa
  • enum

Usage example:

instrument = HP5316X("GPIB1::20::INSTR")

# set measurement mode to period channel A
instrument.measmode = instrument.MeasModes.PERIOD_A

# set gatemode to long with front control
instrument.gatemode = instrument.GateModes.LONG_FRONT

# set mode to manual level set
instrument.triggerlevelmode = instrument.TriggerLevelModes.SET_LEVEL

# set manual trigger level
instrument.triggerlevel_a = 0.01

# set positive trigger slopes
instrument.triggerslope_a = instrument.TriggerSlopes.POSITIVE

for i in range(3):
    # get one measurement
    meas = instrument.get_measurement()

    if meas is not None:
        print("raw answer: " + meas.raw)
        print("value: " + str(meas.value))
        print("unit: " + meas.unit)
        print("overflow: " + str(meas.overflow))

del instrument

hp_5316x's People

Contributors

dotmjsc 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.