Package jisa.visa

Class VISA


  • public class VISA
    extends java.lang.Object
    Static class for accessing the native VISA library in a more Java-friendly way
    • Constructor Detail

      • VISA

        public VISA()
    • 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,
                                                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