Package jisa.visa
Class VISA
- java.lang.Object
-
- jisa.visa.VISA
-
public class VISA extends java.lang.Object
Static class for accessing the native VISA library in a more Java-friendly way
-
-
Constructor Summary
Constructors Constructor Description VISA()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Driver>
TgetDriver(java.lang.Class<T> driverClass)
static void
init()
static java.util.List<Address>
listInstruments()
Returns an array of all instrument addressed detected by VISAstatic Connection
openInstrument(Address address)
static Connection
openInstrument(Address address, java.lang.Class<? extends Driver> preferredDriver)
Open the instrument with the given VISA resource addressstatic void
resetDrivers()
-
-
-
Method Detail
-
init
public static void init()
-
resetDrivers
public static void resetDrivers()
-
getDriver
public static <T extends Driver> T getDriver(java.lang.Class<T> driverClass)
-
listInstruments
public static java.util.List<Address> listInstruments() throws VISAException
Returns an array of all instrument addressed detected by VISA- Returns:
- Array of instrument addresses
- Throws:
VISAException
- Upon error with VISA interface
-
openInstrument
public static Connection openInstrument(Address address) throws VISAException
- Throws:
VISAException
-
openInstrument
public static Connection openInstrument(Address address, java.lang.Class<? extends Driver> preferredDriver) throws VISAException
Open the instrument with the given VISA resource address- Parameters:
address
- Resource address- Returns:
- Instrument handle
- Throws:
VISAException
- Upon error with VISA interface
-
-