package module
v0.0.1 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 5 Imported by: 0


GPIB (otherwise known as HP-IB or IEEE-488) is a connector used in lab test equipment to allow headless control of devices on the workbench.




This section is empty.


This section is empty.


This section is empty.


type Device

type Device struct {
	// contains filtered or unexported fields

Device represents a device connected to the GPIB.

func Open

func Open(board, pad, sad int, opts *Options) (*Device, error)

Open will open a provided GPIB device.

func (*Device) Close

func (d *Device) Close() error

Close will release the underlying handle to the GPIB device, and close the related context, terminating any spawned helpers.

func (*Device) Local

func (d *Device) Local() error

Local will return local control to the user over the device.

func (*Device) Read

func (d *Device) Read(buf []byte) (int, error)

Read will read data from the GPIB device.

func (*Device) Write

func (d *Device) Write(buf []byte) (int, error)

Write will write user data to the GPIB device.

type Options

type Options struct {
	// BaseContext will be used to extend a context with the same lifecycle
	// as the underlying handle to the remote GPIB device.
	BaseContext context.Context

Options contains configurable aspects of the connected GPIB device.


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL