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.String
getDescription()
java.lang.String
getName(int channelNumber)
int
getNumChannels()
boolean
isOn(int channel)
void
turnOff(int channel)
void
turnOn(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.IOException
DeviceException
-
-
Method Detail
-
getDescription
public static java.lang.String getDescription()
-
turnOn
public void turnOn(int channel) throws java.io.IOException, DeviceException
- Specified by:
turnOn
in interfaceMSwitch
- Throws:
java.io.IOException
DeviceException
-
turnOff
public void turnOff(int channel) throws java.io.IOException, DeviceException
- Specified by:
turnOff
in interfaceMSwitch
- Throws:
java.io.IOException
DeviceException
-
isOn
public boolean isOn(int channel) throws java.io.IOException, DeviceException
- Specified by:
isOn
in interfaceMSwitch
- Throws:
java.io.IOException
DeviceException
-
getNumChannels
public int getNumChannels()
- Specified by:
getNumChannels
in interfaceMSwitch
-
getName
public java.lang.String getName(int channelNumber)
-
getChannels
public java.util.List<Switch> getChannels()
- Specified by:
getChannels
in interfaceMSwitch
-
-