
public class KeithleyDevice extends org.lsst.ccs.subsystem.monitor.Device implements BiasDevice, PhotoDiodeDevice
| Modifier and Type | Field and Description |
|---|---|
protected org.lsst.ccs.drivers.scpi.Scpi |
scpi |
| Constructor and Description |
|---|
KeithleyDevice()
Constructor *
**************************************************************************
|
KeithleyDevice(String host,
int port)
KeithleyDevice constructor - put Keithley in initial subsystem state
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
void |
clearBuffer()
Clear buffer *
**************************************************************************
|
protected void |
close()
Closes the connection.
|
protected void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
double |
getCurrent()
Shows the set current.
|
String |
getCurrentLimit()
Shows the soft current limit.
|
double |
getRunBias(int cfgstate)
Returns the bias value for acquisition *
**************************************************************************
|
int |
getState() |
String |
getVoltage()
Shows the set voltage.
|
String |
getVoltageLimit()
Shows the soft voltage limit.
|
protected void |
initChannel(int chan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initialize()
Initializes the device
**************************************************************************
|
void |
open()
Opens connection to a device using all defaults *
**************************************************************************
|
String |
open(String host)
Opens connection to a device.
|
String |
open(String host,
int port)
Opens connection to a device.
|
String |
openftdi(String host,
int port)
Opens FTDI connection to a device.
|
void |
rampVolts(double duration,
double value)
Ramps to the desired voltage *
**************************************************************************
|
String |
readBuffer()
Read buffer *
**************************************************************************
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
double |
readCurrent()
Reads the actual current.
|
double |
readVoltage()
Reads the actual voltage.
|
void |
reset() |
void |
setArmCount(int value)
Sets ARM count *
**************************************************************************
|
void |
setBuffSize(int value)
Set buffer size *
**************************************************************************
|
void |
setCurrent(double value)
Sets the current.
|
void |
setCurrentLimit(double value)
Sets the soft current limit.
|
void |
setCurrentRange(double value)
Sets the current range *
**************************************************************************
|
void |
setOutput(int state)
Turns the output on or off.
|
void |
setRate(int rate)
Sets the read rate in PLC *
**************************************************************************
|
void |
setRunBias(double runBias,
int cfgstate)
Sets the bias value for acquisition *
**************************************************************************
|
void |
setState(int istate) |
void |
setTrigCount(int value)
Sets TRIGger count *
**************************************************************************
|
void |
setVoltage(double value)
Sets the voltage.
|
void |
setVoltageAcq(int cfgstate)
Sets the voltage to the value needed for acquisition.
|
void |
setVoltageLimit(double value)
Sets the soft voltage limit.
|
void |
setVoltageRange(double value)
Sets the voltage range *
**************************************************************************
|
boolean |
showOutput()
Shows the output state.
|
void |
zeroCorrectCurrent()
Zero correct the current *
**************************************************************************
|
addChannel, addChildConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, dropChannel, getConfigValues, getFullName, getOutputLines, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinealias, change, getDictionary, getEnvironment, getName, getParent, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOnlineisOnlinepublic KeithleyDevice(String host, int port) throws org.lsst.ccs.drivers.commons.DriverException
host - device addressport - port or baud * * @param runBias CCD bias voltage while
running *
**************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionpublic KeithleyDevice()
protected void configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Device@Command(name="open", description="Open connection to device using defaults") public void open() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected void close()
close in class org.lsst.ccs.subsystem.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.subsystem.monitor.Device@Command(name="open", description="Open connection to device") public String open(@Argument(name="host",description="Host name") String host) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="open", description="Open connection to device") public String open(@Argument(name="host",description="Host name") String host, @Argument(name="port",description="Port number") int port) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="openftdi", description="Open FTDI connection to device") public String openftdi(@Argument(name="serialname",description="Serial device name") String host, @Argument(name="baud",description="baud rate") int port) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setarmcount", description="Set the ARM count") public void setArmCount(@Argument(name="value",description="ARM count") int value) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="settrigcount", description="Set the trigger count") public void setTrigCount(@Argument(name="value",description="trigger count") int value) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="clrbuff", description="Clears the Keithley read buffer") public void clearBuffer() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readbuff", description="read the buffer") public String readBuffer() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setbuffsize", description="Set the buffer size.") public void setBuffSize(@Argument(name="value",description="buffer size") int value) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setvoltagerange", description="Set the voltage range. Can be 10V, 50V or 500V") public void setVoltageRange(@Argument(name="value",description="Voltage Range to set") double value)
setVoltageRange in interface BiasDevicesetVoltageRange in interface PhotoDiodeDevice@Command(name="setvoltage", description="Set the voltage") public void setVoltage(@Argument(name="value",description="Voltage to set") double value)
setVoltage in interface BiasDevicesetVoltage in interface PhotoDiodeDevice@Command(name="setvoltageacq", description="Set the voltage to the acquisition set point") public void setVoltageAcq(int cfgstate)
setVoltageAcq in interface BiasDevicesetVoltageAcq in interface PhotoDiodeDevice@Command(name="rampvolts", description="ramp the voltage") public void rampVolts(@Argument(name="duration",description="number of seconds to ramp from current voltage to desired voltage") double duration, @Argument(name="value",description="Voltage to ramp to") double value)
rampVolts in interface BiasDevicerampVolts in interface PhotoDiodeDevice@Command(name="showvoltage", description="Show the set voltage") public String getVoltage() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readvoltage", description="Read the actual voltage") public double readVoltage()
readVoltage in interface BiasDevicereadVoltage in interface PhotoDiodeDevice@Command(name="setvoltlim", description="Set the soft voltage limit") public void setVoltageLimit(@Argument(name="value",description="Voltage limit to set") double value) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showvoltlim", description="Show the soft voltage limit") public String getVoltageLimit() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setcurrentrange", description="Set the current range") public void setCurrentRange(@Argument(name="value",description="Current Range to set") double value) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setcurrent", description="Set the current") public void setCurrent(@Argument(name="value",description="Current to set") double value)
setCurrent in interface BiasDevicesetCurrent in interface PhotoDiodeDevice@Command(name="zerocorrectcurrent", description="Zero correct the current") public void zeroCorrectCurrent() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showcurrent", description="Show the set current") public double getCurrent()
@Command(type=ACTION, name="readcurrent", description="Read the actual current") public double readCurrent()
readCurrent in interface BiasDevicereadCurrent in interface PhotoDiodeDevice@Command(name="setcurrlim", description="Set the soft current limit") public void setCurrentLimit(@Argument(name="value",description="Current limit to set") double value) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showcurrlim", description="Show the soft current limit") public String getCurrentLimit() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setrate", description="sets the read rate in plc") public void setRate(@Argument(name="rate",description="number of PLC") int rate)
setRate in interface BiasDevicesetRate in interface PhotoDiodeDevice@Command(name="setoutput", description="Turn output on or off. 1 ==> ON") public void setOutput(@Argument(name="state",description="Output state: on or off") int state)
setOutput in interface BiasDevicesetOutput in interface PhotoDiodeDevice@Command(name="showoutput", description="Show the output state") public boolean showOutput()
showOutput in interface BiasDeviceshowOutput in interface PhotoDiodeDeviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.subsystem.monitor.DeviceExceptionprotected void initChannel(int chan,
int type,
int subtype)
initChannel in class org.lsst.ccs.subsystem.monitor.Device@Command(name="reset", description="reset trips etc...") public void reset() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.subsystem.monitor.Device@Command(name="setrunbias", description="Sets the bias value for acquisition") public void setRunBias(double runBias, int cfgstate)
setRunBias in interface BiasDevicesetRunBias in interface PhotoDiodeDevice@Command(name="getrunbias", description="Returns the bias value for acquisition") public double getRunBias(int cfgstate)
getRunBias in interface BiasDevicegetRunBias in interface PhotoDiodeDevice@Command(name="setstate", description="set keithley device status") public void setState(int istate)
setState in interface BiasDevicesetState in interface PhotoDiodeDevice@Command(name="getstate", description="get keithley device status") public int getState()
getState in interface BiasDevicegetState in interface PhotoDiodeDeviceCopyright © 2014 LSST. All rights reserved.