Package jisa.devices.relay
Class ADRelay
- java.lang.Object
-
- jisa.visa.VISADevice
-
- jisa.devices.relay.ADRelay
-
- All Implemented Interfaces:
Instrument,MSwitch,MultiInstrument,Switch
public class ADRelay extends VISADevice implements MSwitch
-
-
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
-
-
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 java.util.List<Switch>getChannels()static java.lang.StringgetDescription()java.lang.StringgetName(int channelNumber)intgetNumChannels()booleanisOn(int channel)voidturnOff(int channel)voidturnOn(int channel)-
Methods inherited from class jisa.visa.VISADevice
addAutoRemove, checkLimit, checkLimit, clearBuffers, close, getAddress, getConnection, getIDN, 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, getIDN, getLockObject, getName, setTimeout
-
Methods inherited from interface jisa.devices.interfaces.MSwitch
checkChannel, get, getChannel, getSubInstrumentTypes, isOn, setOn, turnOff, turnOn
-
Methods inherited from interface jisa.devices.interfaces.MultiInstrument
contains, contains, get, getSubInstrument, getSubInstruments, getSubInstruments
-
-
-
-
Constructor Detail
-
ADRelay
public ADRelay(Address address) throws java.io.IOException, DeviceException
- Throws:
java.io.IOExceptionDeviceException
-
-
Method Detail
-
getDescription
public static java.lang.String getDescription()
-
turnOn
public void turnOn(int channel) throws java.io.IOException, DeviceException- Specified by:
turnOnin interfaceMSwitch- Throws:
java.io.IOExceptionDeviceException
-
turnOff
public void turnOff(int channel) throws java.io.IOException, DeviceException- Specified by:
turnOffin interfaceMSwitch- Throws:
java.io.IOExceptionDeviceException
-
isOn
public boolean isOn(int channel) throws java.io.IOException, DeviceException- Specified by:
isOnin interfaceMSwitch- Throws:
java.io.IOExceptionDeviceException
-
getNumChannels
public int getNumChannels()
- Specified by:
getNumChannelsin interfaceMSwitch
-
getName
public java.lang.String getName(int channelNumber)
-
getChannels
public java.util.List<Switch> getChannels()
- Specified by:
getChannelsin interfaceMSwitch
-
-