func (d *Device) Write(p []byte) (n int, err error) {
	return d.conn.Write(p)
}
Write writes the given data to the network connection.
package lxi
import (
	"bufio"
	"fmt"
	"net"
	"strings"
)
type Device struct {
	conn net.Conn
}
func NewDevice(address string) (*Device, error) {
	var d Device
	v, err := NewVisaResource(address)
	if err != nil {
		return &d, err
	}
	tcpAddress := fmt.Sprintf("%s:%d", v.hostAddress, v.port)
	c, err := net.Dial("tcp", tcpAddress)
	if err != nil {
		return &d, err
	}
	d.conn = c
	return &d, nil
}