Code Monkey home page Code Monkey logo

visa's Introduction

visa

Go-based Virtual Instrument Software Architecture (VISA) resource manager.

GoDoc Go Report Card License Badge

Background

The primary purpose of this package is to parse a VISA resource address string in order to create a new VISA resource, which abstracts the interface type—USBTMC, TCPIP, ASRL. By registering a driver for the interface type, application developers can decide which interface types to support and which to exclude, so as to not unnecessarily bloat their packages.

The primary source of information is the VPP-4.3: The VISA Library dated June 19, 2014, which can be found at the IVI Specifications webpage.

Usage

In order to not bloat an end developer's application, the desired HW interface driver(s) have to be registered, similar to Go's SQL package. Currently, there are TCPIP, USBTMC, and Serial (ASRL) drivers available.

"github.com/gotmc/visa"
_ "github.com/gotmc/visa/drivers/tcpip"
_ "github.com/gotmc/visa/drivers/usbtmc"
_ "github.com/gotmc/visa/drivers/asrl"

Installation

$ go get github.com/gotmc/visa

Documentation

Documentation can be found at either:

Contributing

Contributions are welcome! To contribute please:

  1. Fork the repository
  2. Create a feature branch
  3. Code
  4. Submit a pull request

Testing

Prior to submitting a pull request, please run:

$ make check
$ make lint

To update and view the test coverage report:

$ make cover

License

visa is released under the MIT license. Please see the LICENSE.txt file for more information.

visa's People

Contributors

matthewrankin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

visa's Issues

Communicating with GPIB device through NI GPIB-ENET/1000 ?

Hello, thank you very much for these packages.

I would like to know what it would require to communicate with a GPIB device connected to a NI GPIB-ENET/1000.
The NI GPIB-ENET/1000 device is an Ethernet gateway for the GPIB bus.
I can't manage to find any info on the protocol.

failed go get github.com/gotmc/visa/drivers/tcpip

According to the README, I should import

import (
    "github.com/gotmc/visa"
    _ "github.com/gotmc/visa/drivers/tcpip"
)

Unfortunately, I can't go get github.com/gotmc/visa/drivers/tcpip. I get the error message go get: module github.com/gotmc/visa@upgrade found (v0.4.0), but does not contain package github.com/gotmc/visa/drivers/tcpip.

When I do go mod tidy, I get the same error message. And go install returns this error message:

$ go install
main.go:9:2: no required module provides package github.com/gotmc/visa/drivers/tcpip; to add it:
	go get github.com/gotmc/visa/drivers/tcpip

Any help would be greatly welcomed, I need to communicate with an agilent4980A device. For now simply sending commands and queries would be all I need, and I can't find out how to do this with the examples.

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.