项目作者: gotmc

项目描述 :
Go-based VISA resource manager.
高级语言: Go
项目地址: git://github.com/gotmc/visa.git
创建时间: 2015-06-03T02:05:02Z
项目社区:https://github.com/gotmc/visa

开源协议:MIT License

下载


visa

Go-based Virtual Instrument Software Architecture (VISA) resource manager, which
can be used by itself to send Standard Commands for Programmable Instruments
(SCPI) commands, or to provide an interface for Interchangeable Virtual
Instrument (IVI) drivers.

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.

  1. "github.com/gotmc/visa"
  2. _ "github.com/gotmc/visa/driver/tcpip"
  3. _ "github.com/gotmc/visa/driver/usbtmc"
  4. _ "github.com/gotmc/visa/driver/asrl"

Installation

  1. $ 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:

  1. $ make check
  2. $ make lint

To update and view the test coverage report:

  1. $ make cover

License

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