Class USBTC08

    • Constructor Detail

      • USBTC08

        public USBTC08()
                throws java.io.IOException,
                       DeviceException
        Connects to the first USB-TC08 unit found connected to the system.
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon instrument error
      • USBTC08

        public USBTC08​(Address address)
                throws java.io.IOException,
                       DeviceException
        Connects to the first USB-TC08 unit with matching serial number, given in the form of an IDAddress object.
        Parameters:
        address - Serial number, as IDAddress object
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon instrument error
      • USBTC08

        public USBTC08​(java.lang.String serial)
                throws java.io.IOException,
                       DeviceException
        Connects to the first USB-TC08 unit with matching serial number, given as a String.
        Parameters:
        serial - Serial number, as a String
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon instrument error
    • Method Detail

      • getDescription

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

        public static java.util.List<USBTC08> findUnits()
        Returns a list of all USB-TC08 units found connected to this computer.
        Returns:
        List of USBTC08 objects representing the found units
      • getSerial

        public java.lang.String getSerial()
                                   throws DeviceException
        Returns the serial number of this unit.
        Returns:
        Serial number
        Throws:
        DeviceException - Upon instrument error.
      • getTemperature

        public double getTemperature​(int sensor)
                              throws DeviceException,
                                     java.io.IOException
        Description copied from interface: MSTMeter
        Returns the temperature being reported by the specified sensor.
        Specified by:
        getTemperature in interface MSTMeter
        Parameters:
        sensor - Sensor to read
        Returns:
        Temperature, in Kelvin
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • getNumSensors

        public int getNumSensors()
        Description copied from interface: MSTMeter
        Returns the number of sensors the instrument has.
        Specified by:
        getNumSensors in interface MSTMeter
        Returns:
        Number of sensors
      • getName

        public java.lang.String getName​(int sensorNumber)
        Specified by:
        getName in interface MSTMeter
      • getTemperatures

        public java.util.List<java.lang.Double> getTemperatures()
                                                         throws DeviceException
        Description copied from interface: MSTMeter
        Returns temperature readings from all sensors as a List indexed by sensor number.
        Specified by:
        getTemperatures in interface MSTMeter
        Returns:
        List of temperatures, in Kelvin
        Throws:
        DeviceException - Upon incompatibility with device
      • setTemperatureRange

        public void setTemperatureRange​(int sensor,
                                        double range)
                                 throws DeviceException,
                                        java.io.IOException
        Description copied from interface: MSTMeter
        Sets the measurement range for temperature values. The smallest available range containing the specified value will be selected if only discrete options are available.
        Specified by:
        setTemperatureRange in interface MSTMeter
        Parameters:
        sensor - The sensor this applies to
        range - The range to use, in Kelvin
        Throws:
        DeviceException - Upon incompatibility with device
        java.io.IOException - Upon communications error
      • getTemperatureRange

        public double getTemperatureRange​(int sensor)
        Description copied from interface: MSTMeter
        Returns the measurement range being used for temperature values.
        Specified by:
        getTemperatureRange in interface MSTMeter
        Parameters:
        sensor - The sensor this applies to
        Returns:
        The range being used, in Kelvin
      • setSensorType

        public void setSensorType​(int sensor,
                                  TCouple.Type type)
                           throws DeviceException,
                                  java.io.IOException
        Configures the sensor on the TC-08, specifying which type of thermocouple is installed.
        Specified by:
        setSensorType in interface MSTCouple
        Parameters:
        sensor - Sensor number
        type - Thermocouple type
        Throws:
        DeviceException - Upon instrument error
        java.io.IOException
      • getSensorType

        public TCouple.Type getSensorType​(int sensor)
                                   throws DeviceException,
                                          java.io.IOException
        Returns the sensor type that the given channel is configured for.
        Specified by:
        getSensorType in interface MSTCouple
        Parameters:
        sensor - Sensor number
        Returns:
        Sensor type
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon instrument error
      • getLineFrequency

        public USBTC08.Frequency getLineFrequency()
        Returns the line-frequency rejection mode currently in use.
        Returns:
        Frequency, 50 Hz or 60 Hz.
      • setLineFrequency

        public void setLineFrequency​(USBTC08.Frequency frequency)
                              throws DeviceException
        Sets the line-frequency rejection mode to be used.
        Parameters:
        frequency - 50 Hz or 60 Hz
        Throws:
        DeviceException - Upon instrument error
      • 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
      • 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