Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(interfaceType InterfaceType, driver Driver)
Register is called to register a driver for use by the program.
Types ¶
type Driver ¶
Driver defines the behavior required by types that want to implement a new search type.
type InterfaceType ¶
type InterfaceType int
InterfaceType identifies the type of the HW interface: USBTMC, TCPIP, or ASRL (serial).
const ( USBTMC InterfaceType = iota TCPIP ASRL )
The available HW interface types for the VISA resource.
func (InterfaceType) String ¶
func (i InterfaceType) String() string
String implements the Stringer interface for the InterfaceType.
type Resource ¶
type Resource interface { Close() error Read(p []byte) (n int, err error) Write(p []byte) (n int, err error) WriteString(s string) (n int, err error) Command(format string, a ...any) error Query(s string) (value string, err error) }
Resource is the interface that defines a VISA resource.
func NewResource ¶
NewResource creates a new Resource using the given VISA address.
Click to show internal directories.
Click to hide internal directories.