Package jisa.devices.smu
Class AgilentSPA.AVSU
- java.lang.Object
-
- jisa.devices.smu.AgilentSPA.AVSU
-
- All Implemented Interfaces:
Instrument
,Switch
,VSource
- Enclosing class:
- AgilentSPA
public class AgilentSPA.AVSU extends java.lang.Object implements VSource
-
-
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
-
-
Constructor Summary
Constructors Constructor Description AVSU(java.lang.String name, int channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the connection to the instrument.Address
getAddress()
Returns any Address object used to connect to this instrument.java.lang.String
getIDN()
Returns an identifying String of the instrument.java.lang.String
getName()
Returns the name of the instrument or channel.SMU.OffMode
getOffMode()
double
getVoltage()
Returns the voltage being output.boolean
isOn()
Returns whether the voltage-source is on or off.void
setOffMode(SMU.OffMode mode)
void
setVoltage(double voltage)
Set the voltage to output.void
turnOff()
Turns the voltage-source off.void
turnOn()
Turns the voltage-source on.-
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
getConfigurationParameters, getConfigurationParameters, getLockObject, setTimeout
-
-
-
-
Method Detail
-
getIDN
public java.lang.String getIDN() throws java.io.IOException, DeviceException
Description copied from interface:Instrument
Returns an identifying String of the instrument.- Specified by:
getIDN
in interfaceInstrument
- Returns:
- Identifying String
- Throws:
java.io.IOException
- Upon communications errorDeviceException
- Upon incompatibility with device
-
getName
public java.lang.String getName()
Description copied from interface:Instrument
Returns the name of the instrument or channel.- Specified by:
getName
in interfaceInstrument
- Returns:
- Name
-
close
public void close() throws java.io.IOException, DeviceException
Description copied from interface:Instrument
Closes the connection to the instrument.- Specified by:
close
in interfaceInstrument
- Throws:
java.io.IOException
- Upon communications errorDeviceException
- Upon incompatibility with device
-
getAddress
public Address getAddress()
Description copied from interface:Instrument
Returns any Address object used to connect to this instrument.- Specified by:
getAddress
in interfaceInstrument
- Returns:
- Address object, null if none
-
setVoltage
public void setVoltage(double voltage) throws DeviceException, java.io.IOException
Description copied from interface:VSource
Set the voltage to output.- Specified by:
setVoltage
in interfaceVSource
- Parameters:
voltage
- Voltage to output, in Volts- Throws:
DeviceException
- Upon incompatibility with devicejava.io.IOException
- Upon communications error
-
getVoltage
public double getVoltage() throws java.io.IOException, DeviceException
Description copied from interface:VSource
Returns the voltage being output.- Specified by:
getVoltage
in interfaceVSource
- Returns:
- Voltage being output, in Volts
- Throws:
java.io.IOException
- Upon communications errorDeviceException
- Upon incompatibility with device
-
turnOn
public void turnOn() throws java.io.IOException, DeviceException
Description copied from interface:VSource
Turns the voltage-source on.- Specified by:
turnOn
in interfaceSwitch
- Specified by:
turnOn
in interfaceVSource
- Throws:
java.io.IOException
- Upon communications errorDeviceException
- Upon incompatibility with device
-
setOffMode
public void setOffMode(SMU.OffMode mode) throws DeviceException, java.io.IOException
- Throws:
DeviceException
java.io.IOException
-
getOffMode
public SMU.OffMode getOffMode()
-
turnOff
public void turnOff() throws DeviceException, java.io.IOException
Description copied from interface:VSource
Turns the voltage-source off.- Specified by:
turnOff
in interfaceSwitch
- Specified by:
turnOff
in interfaceVSource
- Throws:
DeviceException
- Upon incompatibility with devicejava.io.IOException
- Upon communications error
-
isOn
public boolean isOn() throws java.io.IOException, DeviceException
Description copied from interface:VSource
Returns whether the voltage-source is on or off.- Specified by:
isOn
in interfaceSwitch
- Specified by:
isOn
in interfaceVSource
- Returns:
- Is it on?
- Throws:
java.io.IOException
- Upon communications errorDeviceException
- Upon incompatibility with device
-
-