public class VisaInstrument extends Object implements Instrument
| Constructor and Description |
|---|
VisaInstrument(String instAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getIdn() |
byte[] |
getResponseBytes(int timeout,
String command,
byte[] retval) |
byte[] |
getResponseBytes(int timeout,
String command,
int length) |
double |
getResponseDouble(int timeout,
String command) |
int |
getResponseInteger(int timeout,
String command) |
String |
getResponseString(int timeout,
String command) |
String |
getResponseStringTrimmed(int timeout,
String command) |
static void |
main(String[] args) |
byte[] |
readBytes(int timeout,
byte[] retval) |
byte[] |
readBytes(int timeout,
int length) |
void |
send(byte[] data) |
void |
send(String command) |
public VisaInstrument(String instAddress)
public String getIdn() throws IOException
getIdn in interface InstrumentIOExceptionpublic void send(String command) throws IOException
send in interface InstrumentIOExceptionpublic void send(byte[] data)
throws IOException
send in interface InstrumentIOExceptionpublic String getResponseString(int timeout, String command) throws IOException
getResponseString in interface InstrumentIOExceptionpublic String getResponseStringTrimmed(int timeout, String command) throws IOException
getResponseStringTrimmed in interface InstrumentIOExceptionpublic int getResponseInteger(int timeout,
String command)
throws IOException
getResponseInteger in interface InstrumentIOExceptionpublic double getResponseDouble(int timeout,
String command)
throws IOException
getResponseDouble in interface InstrumentIOExceptionpublic byte[] getResponseBytes(int timeout,
String command,
int length)
throws IOException
getResponseBytes in interface InstrumentIOExceptionpublic byte[] getResponseBytes(int timeout,
String command,
byte[] retval)
throws IOException
getResponseBytes in interface InstrumentIOExceptionpublic byte[] readBytes(int timeout,
int length)
throws IOException
readBytes in interface InstrumentIOExceptionpublic byte[] readBytes(int timeout,
byte[] retval)
throws IOException
readBytes in interface InstrumentIOExceptionpublic void close()
throws IOException
close in interface InstrumentIOExceptionpublic static void main(String[] args)
Copyright © 2009-2013 jtstand.com. All Rights Reserved.