Class AgilentSPA.AVSU

    • Constructor Detail

      • AVSU

        public AVSU​(java.lang.String name,
                    int channel)
    • Method Detail

      • getIDN

        public 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 interface Instrument
        Returns:
        Identifying String
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • getName

        public java.lang.String getName()
        Description copied from interface: Instrument
        Returns the name of the instrument or channel.
        Specified by:
        getName in interface Instrument
        Returns:
        Name
      • close

        public void close()
                   throws java.io.IOException,
                          DeviceException
        Description copied from interface: Instrument
        Closes the connection to the instrument.
        Specified by:
        close in interface Instrument
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • getAddress

        public Address getAddress()
        Description copied from interface: Instrument
        Returns any Address object used to connect to this instrument.
        Specified by:
        getAddress in interface Instrument
        Returns:
        Address object, null if none
      • setVoltage

        public void setVoltage​(double voltage)
                        throws DeviceException,
                               java.io.IOException
        Description copied from interface: VSource
        Set the voltage to output.
        Specified by:
        setVoltage in interface VSource
        Parameters:
        voltage - Voltage to output, in Volts
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • getVoltage

        public double getVoltage()
                          throws java.io.IOException,
                                 DeviceException
        Description copied from interface: VSource
        Returns the voltage being output.
        Specified by:
        getVoltage in interface VSource
        Returns:
        Voltage being output, in Volts
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • turnOn

        public void turnOn()
                    throws java.io.IOException,
                           DeviceException
        Description copied from interface: VSource
        Turns the voltage-source on.
        Specified by:
        turnOn in interface Switch
        Specified by:
        turnOn in interface VSource
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • turnOff

        public void turnOff()
                     throws DeviceException,
                            java.io.IOException
        Description copied from interface: VSource
        Turns the voltage-source off.
        Specified by:
        turnOff in interface Switch
        Specified by:
        turnOff in interface VSource
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • isOn

        public boolean isOn()
                     throws java.io.IOException,
                            DeviceException
        Description copied from interface: VSource
        Returns whether the voltage-source is on or off.
        Specified by:
        isOn in interface Switch
        Specified by:
        isOn in interface VSource
        Returns:
        Is it on?
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device