Package jisa.devices.level
Class ILM200
- java.lang.Object
-
- jisa.visa.VISADevice
-
- jisa.devices.level.ILM200
-
- All Implemented Interfaces:
Instrument
,LevelMeter
,MultiInstrument
public class ILM200 extends VISADevice implements LevelMeter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ILM200.Mode
-
Nested classes/interfaces inherited from interface jisa.devices.interfaces.Instrument
Instrument.AutoQuantity<S>, Instrument.OptionalQuantity<S>, Instrument.Parameter<S>, Instrument.Setter<S>, Instrument.TableQuantity
-
-
Field Summary
-
Fields inherited from class jisa.visa.VISADevice
C_IDN, CR_TERMINATOR, CRLF_TERMINATOR, DEFAULT_EOI, DEFAULT_EOS, DEFAULT_TIMEOUT, EOS_RETURN, LF_TERMINATOR
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <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.java.util.List<LevelMeter>
getChannels()
static java.lang.String
getDescription()
java.lang.String
getIDN()
Sends the standard identifications query to the device (*IDN?)double
getLevel(int channel)
java.lang.String
getName(int channelNumber)
int
getNumChannels()
<I extends Instrument>
IgetSubInstrument(java.lang.Class<I> type, int index)
void
setFastRate(int channel, boolean fast)
void
setMode(ILM200.Mode mode)
-
Methods inherited from class jisa.visa.VISADevice
addAutoRemove, checkLimit, checkLimit, clearBuffers, close, getAddress, getConnection, getName, manuallyClearReadBuffer, query, queryDouble, queryInt, read, read, readBytes, readDouble, readInt, setIOLimit, setReadBufferSize, setReadTerminator, setReadTerminator, setRetryCount, setTimeout, setWriteTerminator, write, writeBytes
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jisa.devices.interfaces.Instrument
close, getAddress, getConfigurationParameters, getConfigurationParameters, getLockObject, setTimeout
-
Methods inherited from interface jisa.devices.interfaces.LevelMeter
getChannel, getLevel, getName, getSubInstrumentTypes
-
Methods inherited from interface jisa.devices.interfaces.MultiInstrument
contains, contains, get, getSubInstruments, getSubInstruments
-
-
-
-
Constructor Detail
-
ILM200
public ILM200(Address address) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getDescription
public static java.lang.String getDescription()
-
getIDN
public java.lang.String getIDN() throws java.io.IOException
Description copied from class:VISADevice
Sends the standard identifications query to the device (*IDN?)- Specified by:
getIDN
in interfaceInstrument
- Overrides:
getIDN
in classVISADevice
- Returns:
- The resposne of the device
- Throws:
java.io.IOException
- Upon communications error
-
getLevel
public double getLevel(int channel) throws DeviceException, java.io.IOException
- Specified by:
getLevel
in interfaceLevelMeter
- Throws:
DeviceException
java.io.IOException
-
setMode
public void setMode(ILM200.Mode mode) throws java.io.IOException
- Throws:
java.io.IOException
-
setFastRate
public void setFastRate(int channel, boolean fast) throws java.io.IOException, DeviceException
- Throws:
java.io.IOException
DeviceException
-
getNumChannels
public int getNumChannels()
-
getName
public java.lang.String getName(int channelNumber)
- Specified by:
getName
in interfaceLevelMeter
-
getChannels
public java.util.List<LevelMeter> getChannels()
-
get
public <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
public <I extends Instrument> I getSubInstrument(java.lang.Class<I> type, int index)
- Specified by:
getSubInstrument
in interfaceMultiInstrument
-
-