Package jisa.visa
Class NativeDevice<I extends com.sun.jna.Library>
- java.lang.Object
-
- jisa.visa.NativeDevice<I>
-
- All Implemented Interfaces:
Instrument
- Direct Known Subclasses:
USBTC08
public abstract class NativeDevice<I extends com.sun.jna.Library> extends java.lang.Object implements Instrument
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jisa.devices.interfaces.Instrument
Instrument.AutoQuantity<S>, Instrument.OptionalQuantity<S>, Instrument.Parameter<S>, Instrument.Setter<S>, Instrument.TableQuantity
-
-
Constructor Summary
Constructors Constructor Description NativeDevice(java.lang.String libraryName, I library)
NativeDevice(java.lang.String libraryName, java.lang.Class<I> libraryInterface)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
close()
Closes the connection to the instrument.abstract java.lang.String
getIDN()
Returns an identifying String of the instrument.static java.util.List<NativeDevice<?>>
search()
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jisa.devices.interfaces.Instrument
getAddress, getConfigurationParameters, getConfigurationParameters, getLockObject, getName, setTimeout
-
-
-
-
Field Detail
-
lib
protected I extends com.sun.jna.Library lib
-
name
protected java.lang.String name
-
-
Method Detail
-
search
public static java.util.List<NativeDevice<?>> search()
-
getIDN
public abstract java.lang.String getIDN() throws java.io.IOException, DeviceException
Description copied from interface:Instrument
Returns an identifying String of the instrument.- Specified by:
getIDN
in interfaceInstrument
- Returns:
- Identifying String
- Throws:
java.io.IOException
- Upon communications errorDeviceException
- Upon incompatibility with device
-
close
public abstract void close() throws java.io.IOException, DeviceException
Description copied from interface:Instrument
Closes the connection to the instrument.- Specified by:
close
in interfaceInstrument
- Throws:
java.io.IOException
- Upon communications errorDeviceException
- Upon incompatibility with device
-
-