Package jisa.devices.amp
Class SR560
- java.lang.Object
-
- jisa.visa.VISADevice
-
- jisa.devices.amp.SR560
-
- All Implemented Interfaces:
Instrument
,VPreAmp
public class SR560 extends VISADevice implements VPreAmp
-
-
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 Coupling
getCoupling()
Returns the coupling configuration currently being used.static java.lang.String
getDescription()
double
getFilterHighFrequency()
Returns the high frequency value currently being used by the filter.double
getFilterLowFrequency()
Returns the low frequency value currently being used by the filter.Filter
getFilterMode()
Returns the filter mode currently being used.double
getFilterRollOff()
Returns the filter roll-off value currently being used in db/decadedouble
getGain()
Returns the gain value of the amplifier currently.java.lang.String
getIDN()
Sends the standard identifications query to the device (*IDN?)Input
getInput()
Returns the source terminal configuration currently being used.void
setCoupling(Coupling mode)
Sets the coupling mode of the pre-amplifier.void
setFilterHighFrequency(double frequency)
Sets the high frequency value of the filter to the given value or as close as possible.void
setFilterLowFrequency(double frequency)
Sets the low frequency value of the filter to the given value or as close as possible.void
setFilterMode(Filter mode)
Sets the filter mode of the pre-amplifier.void
setFilterRollOff(double dbLevel)
Sets the filter roll-off value in db/decade (or as close to it as one can get).void
setGain(double gain)
Sets the gain to the given value, or as close to it as possible.void
setInput(Input source)
Sets the source terminal to use, either A, B or DIFF (for A - B).-
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, getName, setTimeout
-
-
-
-
Constructor Detail
-
SR560
public SR560(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()
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
-
setGain
public void setGain(double gain) throws java.io.IOException
Description copied from interface:VPreAmp
Sets the gain to the given value, or as close to it as possible.
-
setInput
public void setInput(Input source) throws java.io.IOException
Description copied from interface:VPreAmp
Sets the source terminal to use, either A, B or DIFF (for A - B).
-
setCoupling
public void setCoupling(Coupling mode) throws java.io.IOException
Description copied from interface:VPreAmp
Sets the coupling mode of the pre-amplifier.- Specified by:
setCoupling
in interfaceVPreAmp
- Parameters:
mode
- Coupling mode: GROUND, DC or AC.- Throws:
java.io.IOException
- Upon communications error
-
setFilterMode
public void setFilterMode(Filter mode) throws java.io.IOException
Description copied from interface:VPreAmp
Sets the filter mode of the pre-amplifier.- Specified by:
setFilterMode
in interfaceVPreAmp
- Parameters:
mode
- Filter-mode: NONE, LOW_PASS, HIGH_PASS or BAND_PASS- Throws:
java.io.IOException
- Upon communications error
-
setFilterRollOff
public void setFilterRollOff(double dbLevel) throws java.io.IOException
Description copied from interface:VPreAmp
Sets the filter roll-off value in db/decade (or as close to it as one can get).- Specified by:
setFilterRollOff
in interfaceVPreAmp
- Parameters:
dbLevel
- Roll-off (db/decade)- Throws:
java.io.IOException
- Upon communications error
-
setFilterHighFrequency
public void setFilterHighFrequency(double frequency) throws java.io.IOException
Description copied from interface:VPreAmp
Sets the high frequency value of the filter to the given value or as close as possible.- Specified by:
setFilterHighFrequency
in interfaceVPreAmp
- Parameters:
frequency
- High frequency value, in Hz- Throws:
java.io.IOException
- Upon communications error
-
setFilterLowFrequency
public void setFilterLowFrequency(double frequency) throws java.io.IOException
Description copied from interface:VPreAmp
Sets the low frequency value of the filter to the given value or as close as possible.- Specified by:
setFilterLowFrequency
in interfaceVPreAmp
- Parameters:
frequency
- Low frequency value, in Hz- Throws:
java.io.IOException
- Upon communications error
-
getGain
public double getGain()
Description copied from interface:VPreAmp
Returns the gain value of the amplifier currently.
-
getInput
public Input getInput()
Description copied from interface:VPreAmp
Returns the source terminal configuration currently being used.
-
getCoupling
public Coupling getCoupling()
Description copied from interface:VPreAmp
Returns the coupling configuration currently being used.- Specified by:
getCoupling
in interfaceVPreAmp
- Returns:
- Coupling configuration
-
getFilterMode
public Filter getFilterMode()
Description copied from interface:VPreAmp
Returns the filter mode currently being used.- Specified by:
getFilterMode
in interfaceVPreAmp
- Returns:
- Filter mode
-
getFilterRollOff
public double getFilterRollOff()
Description copied from interface:VPreAmp
Returns the filter roll-off value currently being used in db/decade- Specified by:
getFilterRollOff
in interfaceVPreAmp
- Returns:
- Filter roll off (db/decade)
-
getFilterHighFrequency
public double getFilterHighFrequency()
Description copied from interface:VPreAmp
Returns the high frequency value currently being used by the filter.- Specified by:
getFilterHighFrequency
in interfaceVPreAmp
- Returns:
- High frequency value, in Hz.
-
getFilterLowFrequency
public double getFilterLowFrequency()
Description copied from interface:VPreAmp
Returns the low frequency value currently being used by the filter.- Specified by:
getFilterLowFrequency
in interfaceVPreAmp
- Returns:
- Low frequency value, in Hz.
-
-