Package jisa.devices.interfaces
Interface MSTMeter
-
- All Superinterfaces:
Instrument
,MultiInstrument
,TMeter
- All Known Subinterfaces:
MSTCouple
- All Known Implementing Classes:
USBTC08
public interface MSTMeter extends TMeter, MultiInstrument
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jisa.devices.interfaces.Instrument
Instrument.AutoQuantity<S>, Instrument.OptionalQuantity<S>, Instrument.Parameter<S>, Instrument.Setter<S>, Instrument.TableQuantity
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
checkSensor(int sensor)
default <I extends Instrument>
java.util.List<I>get(java.lang.Class<I> type)
Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.static java.lang.String
getDescription()
java.lang.String
getName(int channel)
int
getNumSensors()
Returns the number of sensors the instrument has.default TMeter
getSensor(int sensor)
Returns the specified sensor as its own thermometer object.default java.util.List<TMeter>
getSensors()
default <I extends Instrument>
IgetSubInstrument(java.lang.Class<I> type, int index)
default java.util.List<java.lang.Class<? extends Instrument>>
getSubInstrumentTypes()
Returns a list of all the different classes of sub-instruments that this instrument contains.default double
getTemperature()
Returns the temperature reported by the first sensor.double
getTemperature(int sensor)
Returns the temperature being reported by the specified sensor.default double
getTemperatureRange()
Returns the measurement range being used for temperature values.double
getTemperatureRange(int sensor)
Returns the measurement range being used for temperature values.default java.util.List<java.lang.Double>
getTemperatures()
Returns temperature readings from all sensors as a List indexed by sensor number.default void
setTemperatureRange(double range)
Sets the measurement range for temperature values.void
setTemperatureRange(int sensor, double range)
Sets the measurement range for temperature values.default void
waitForStableTemperature(int sensor, double temperature, double pctMargin, int duration)
-
Methods inherited from interface jisa.devices.interfaces.Instrument
close, getAddress, getConfigurationParameters, getIDN, getLockObject, getName, setTimeout
-
Methods inherited from interface jisa.devices.interfaces.MultiInstrument
contains, contains, get, getSubInstruments, getSubInstruments
-
Methods inherited from interface jisa.devices.interfaces.TMeter
getConfigurationParameters, waitForStableTemperature, waitForStableTemperature, waitForStableTemperatureMaxTime, waitForStableTemperatureMaxTime
-
-
-
-
Method Detail
-
getDescription
static java.lang.String getDescription()
-
getSubInstrumentTypes
default java.util.List<java.lang.Class<? extends Instrument>> getSubInstrumentTypes()
Description copied from interface:MultiInstrument
Returns a list of all the different classes of sub-instruments that this instrument contains.- Specified by:
getSubInstrumentTypes
in interfaceMultiInstrument
- Returns:
- List of sub-instrument classes
-
get
default <I extends Instrument> java.util.List<I> get(java.lang.Class<I> type)
Description copied from interface:MultiInstrument
Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.- Specified by:
get
in interfaceMultiInstrument
- Type Parameters:
I
- Instrument class- Parameters:
type
- The class object of sub-instrument to return- Returns:
- List of sub-instruments matching the given class
-
getSubInstrument
default <I extends Instrument> I getSubInstrument(java.lang.Class<I> type, int index)
- Specified by:
getSubInstrument
in interfaceMultiInstrument
-
getName
java.lang.String getName(int channel)
-
getTemperature
double getTemperature(int sensor) throws java.io.IOException, DeviceException
Returns the temperature being reported by the specified sensor.- Parameters:
sensor
- Sensor to read- Returns:
- Temperature, in Kelvin
- Throws:
DeviceException
- Upon incompatibility with devicejava.io.IOException
- Upon communications error
-
getNumSensors
int getNumSensors()
Returns the number of sensors the instrument has.- Returns:
- Number of sensors
- Throws:
DeviceException
- Upon incompatibility with devicejava.io.IOException
- Upon communications error
-
getTemperature
default double getTemperature() throws java.io.IOException, DeviceException
Returns the temperature reported by the first sensor.- Specified by:
getTemperature
in interfaceTMeter
- Returns:
- Temperature, in Kelvin
- Throws:
DeviceException
- Upon incompatibility with devicejava.io.IOException
- Upon communications error
-
getTemperatures
default java.util.List<java.lang.Double> getTemperatures() throws java.io.IOException, DeviceException
Returns temperature readings from all sensors as a List indexed by sensor number.- Returns:
- List of temperatures, in Kelvin
- Throws:
DeviceException
- Upon incompatibility with devicejava.io.IOException
- Upon communications error
-
setTemperatureRange
void setTemperatureRange(int sensor, double range) throws java.io.IOException, DeviceException
Sets the measurement range for temperature values. The smallest available range containing the specified value will be selected if only discrete options are available.- Parameters:
sensor
- The sensor this applies torange
- The range to use, in Kelvin- Throws:
DeviceException
- Upon incompatibility with devicejava.io.IOException
- Upon communications error
-
setTemperatureRange
default void setTemperatureRange(double range) throws java.io.IOException, DeviceException
Description copied from interface:TMeter
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 interfaceTMeter
- Parameters:
range
- The range to use, in Kelvin- Throws:
java.io.IOException
- Upon communications errorDeviceException
- Upon incompatibility with device
-
getTemperatureRange
double getTemperatureRange(int sensor) throws java.io.IOException, DeviceException
Returns the measurement range being used for temperature values.- Parameters:
sensor
- The sensor this applies to- Returns:
- The range being used, in Kelvin
- Throws:
DeviceException
- Upon incompatibility with devicejava.io.IOException
- Upon communications error
-
getTemperatureRange
default double getTemperatureRange() throws java.io.IOException, DeviceException
Description copied from interface:TMeter
Returns the measurement range being used for temperature values.- Specified by:
getTemperatureRange
in interfaceTMeter
- Returns:
- The range being used, in Kelvin
- Throws:
java.io.IOException
- Upon communications errorDeviceException
- Upon incompatibility with device
-
getSensor
default TMeter getSensor(int sensor)
Returns the specified sensor as its own thermometer object.- Parameters:
sensor
- The sensor to return- Returns:
- Sensor as thermometer
- Throws:
DeviceException
- Upon incompatibility with devicejava.io.IOException
- Upon communications error
-
getSensors
default java.util.List<TMeter> getSensors()
-
waitForStableTemperature
default void waitForStableTemperature(int sensor, double temperature, double pctMargin, int duration) throws java.lang.InterruptedException, DeviceException, java.io.IOException
- Throws:
java.lang.InterruptedException
DeviceException
java.io.IOException
-
checkSensor
default void checkSensor(int sensor) throws DeviceException, java.io.IOException
- Throws:
DeviceException
java.io.IOException
-
-