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 voidcheckSensor(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.StringgetDescription()java.lang.StringgetName(int channel)intgetNumSensors()Returns the number of sensors the instrument has.default TMetergetSensor(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 doublegetTemperature()Returns the temperature reported by the first sensor.doublegetTemperature(int sensor)Returns the temperature being reported by the specified sensor.default doublegetTemperatureRange()Returns the measurement range being used for temperature values.doublegetTemperatureRange(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 voidsetTemperatureRange(double range)Sets the measurement range for temperature values.voidsetTemperatureRange(int sensor, double range)Sets the measurement range for temperature values.default voidwaitForStableTemperature(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:MultiInstrumentReturns a list of all the different classes of sub-instruments that this instrument contains.- Specified by:
getSubInstrumentTypesin 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:MultiInstrumentReturns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.- Specified by:
getin 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:
getSubInstrumentin interfaceMultiInstrument
-
getName
java.lang.String getName(int channel)
-
getTemperature
double getTemperature(int sensor) throws java.io.IOException, DeviceExceptionReturns 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, DeviceExceptionReturns the temperature reported by the first sensor.- Specified by:
getTemperaturein 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, DeviceExceptionReturns 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, DeviceExceptionSets 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, DeviceExceptionDescription copied from interface:TMeterSets 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:
setTemperatureRangein 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, DeviceExceptionReturns 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, DeviceExceptionDescription copied from interface:TMeterReturns the measurement range being used for temperature values.- Specified by:
getTemperatureRangein 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.InterruptedExceptionDeviceExceptionjava.io.IOException
-
checkSensor
default void checkSensor(int sensor) throws DeviceException, java.io.IOException- Throws:
DeviceExceptionjava.io.IOException
-
-