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 classILM200.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.StringgetDescription()java.lang.StringgetIDN()Sends the standard identifications query to the device (*IDN?)doublegetLevel(int channel)java.lang.StringgetName(int channelNumber)intgetNumChannels()<I extends Instrument>
IgetSubInstrument(java.lang.Class<I> type, int index)voidsetFastRate(int channel, boolean fast)voidsetMode(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.IOExceptionDescription copied from class:VISADeviceSends the standard identifications query to the device (*IDN?)- Specified by:
getIDNin interfaceInstrument- Overrides:
getIDNin 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:
getLevelin interfaceLevelMeter- Throws:
DeviceExceptionjava.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.IOExceptionDeviceException
-
getNumChannels
public int getNumChannels()
-
getName
public java.lang.String getName(int channelNumber)
- Specified by:
getNamein 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: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
public <I extends Instrument> I getSubInstrument(java.lang.Class<I> type, int index)
- Specified by:
getSubInstrumentin interfaceMultiInstrument
-
-