Class K2182

    • Method Detail

      • getDescription

        public static java.lang.String getDescription()
      • getVoltage

        public double getVoltage()
                          throws java.io.IOException,
                                 DeviceException
        Description copied from interface: VMeter
        Takes a voltage measurement and returns the value.
        Specified by:
        getVoltage in interface VMeter
        Returns:
        Voltage measurement value, in Volts
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • setIntegrationTime

        public void setIntegrationTime​(double time)
                                throws java.io.IOException
        Description copied from interface: VMeter
        Sets the integration time for each measurement.
        Specified by:
        setIntegrationTime in interface VMeter
        Parameters:
        time - Integration time, in seconds.
        Throws:
        java.io.IOException - Upon communications error
      • getIntegrationTime

        public double getIntegrationTime()
                                  throws java.io.IOException
        Description copied from interface: VMeter
        Returns the integration time being used for measurements.
        Specified by:
        getIntegrationTime in interface VMeter
        Returns:
        Integration time, in seconds.
        Throws:
        java.io.IOException - Upon communications error
      • setVoltageRange

        public void setVoltageRange​(double range)
                             throws java.io.IOException
        Description copied from interface: VMeter
        Sets the measurement range to use for voltage measurements. If only discrete options are available, the smallest range that contains the supplied value is used. A range of n indicates -n to +n.
        Specified by:
        setVoltageRange in interface VMeter
        Parameters:
        range - Range to use, in Volts
        Throws:
        java.io.IOException - Upon communications error
      • getVoltageRange

        public double getVoltageRange()
                               throws java.io.IOException
        Description copied from interface: VMeter
        Returns the measurement range being used for voltage measurements. A range of n indicates -n to +n.
        Specified by:
        getVoltageRange in interface VMeter
        Returns:
        Range being used, in Volts
        Throws:
        java.io.IOException - Upon communications error
      • useAutoVoltageRange

        public void useAutoVoltageRange()
                                 throws java.io.IOException
        Description copied from interface: VMeter
        Tells the voltmeter to use auto-ranging for voltage measurements.
        Specified by:
        useAutoVoltageRange in interface VMeter
        Throws:
        java.io.IOException - Upon communications error
      • isAutoRangingVoltage

        public boolean isAutoRangingVoltage()
                                     throws java.io.IOException
        Description copied from interface: VMeter
        Returns whether the voltmeter is using auto-ranging for voltage measurements.
        Specified by:
        isAutoRangingVoltage in interface VMeter
        Returns:
        Is it auto-ranging?
        Throws:
        java.io.IOException - Upon communications error
      • setAverageMode

        public void setAverageMode​(AMode mode)
                            throws java.io.IOException,
                                   DeviceException
        Description copied from interface: VMeter
        Sets the averaging mode used for taking each measurement.
        Specified by:
        setAverageMode in interface VMeter
        Parameters:
        mode - Averaging mode to use
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • setAverageCount

        public void setAverageCount​(int count)
                             throws java.io.IOException,
                                    DeviceException
        Description copied from interface: VMeter
        Sets the number of measurements to use for averaging.
        Specified by:
        setAverageCount in interface VMeter
        Parameters:
        count - Number of measurements
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • getAverageMode

        public AMode getAverageMode()
        Description copied from interface: VMeter
        Returns the averaging mode being used for measurements by the voltmeter.
        Specified by:
        getAverageMode in interface VMeter
        Returns:
        Averaging mode
      • getAverageCount

        public int getAverageCount()
        Description copied from interface: VMeter
        Returns the number of measurements used for averaging by the voltmeter.
        Specified by:
        getAverageCount in interface VMeter
        Returns:
        Number of measurements
      • turnOn

        public void turnOn()
        Description copied from interface: VMeter
        Turns on the voltmeter.
        Specified by:
        turnOn in interface Switch
        Specified by:
        turnOn in interface VMeter
      • turnOff

        public void turnOff()
        Description copied from interface: VMeter
        Turns off the voltmeter.
        Specified by:
        turnOff in interface Switch
        Specified by:
        turnOff in interface VMeter
      • isOn

        public boolean isOn()
        Description copied from interface: VMeter
        Returns whether the voltmeter is on or not.
        Specified by:
        isOn in interface Switch
        Specified by:
        isOn in interface VMeter
        Returns:
        Is it on?
      • getTerminalType

        public TType getTerminalType​(Terminals terminals)
        Description copied from interface: VMeter
        Returns what type of connector is used for the given terminal.
        Specified by:
        getTerminalType in interface VMeter
        Parameters:
        terminals - Which terminal
        Returns:
        Terminal type (TRIAX, PHOENIX, BNC or BANANA)
      • setTerminals

        public void setTerminals​(Terminals terminals)
        Description copied from interface: VMeter
        Sets which set of terminals should be used on the voltmeter.
        Specified by:
        setTerminals in interface VMeter
        Parameters:
        terminals - Which type of terminals to use
      • isLineFilterEnabled

        public boolean isLineFilterEnabled()
                                    throws java.io.IOException
        Description copied from interface: VMeter
        Returns whether the voltmeter is using any line-frequency filtering
        Specified by:
        isLineFilterEnabled in interface VMeter
        Returns:
        Using line filter?
        Throws:
        java.io.IOException - Upon communications error
      • setLineFilterEnabled

        public void setLineFilterEnabled​(boolean enabled)
                                  throws java.io.IOException
        Description copied from interface: VMeter
        Sets whether the voltmeter should use any line-frequency filtering (if available)
        Specified by:
        setLineFilterEnabled in interface VMeter
        Parameters:
        enabled - Use line filter?
        Throws:
        java.io.IOException - Upon communications error
      • getTerminals

        public Terminals getTerminals()
        Description copied from interface: VMeter
        Returns the type of the set of terminals currently being used on the voltmeter.
        Specified by:
        getTerminals in interface VMeter
        Returns:
        The type of terminals being used