
public class AgilentDevice extends org.lsst.ccs.subsystem.monitor.Device implements LEDDevice
| Constructor and Description |
|---|
AgilentDevice()
Constructor *
**************************************************************************
|
AgilentDevice(String host,
int port)
AgilentDevice constructor - put Agilent 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.
|
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
**************************************************************************
|
String |
openftdi(String host,
int port)
Opens FTDI connection to a device.
|
void |
rampVolts(double duration,
double value)
Ramps to the desired voltage *
**************************************************************************
|
void |
rampVolts(double duration,
double value,
int nsteps)
Ramps to the desired voltage over a given time and for nsteps
|
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 |
selectOutput(String value)
Sets the voltage.
|
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 |
setRunBias(double runBias,
int cfgstate)
Sets the bias value for acquisition *
**************************************************************************
|
void |
setState(int istate) |
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, addConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinegetChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getCheckedValueFromConfiguration, getComponentByName, getName, getParent, getParentObject, getSubmittedChanges, getSubsystem, init, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, printConfigurableParameters, setBulkParameter, shutdownNow, start, submitChange, submitChanges, validateBulkChangepublic AgilentDevice(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 AgilentDevice()
protected void configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Deviceprotected void close()
close in class org.lsst.ccs.subsystem.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.subsystem.monitor.Device@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="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 LEDDevice@Command(name="selectoutput", description="Select the output for control") public void selectOutput(@Argument(name="value",description="outname : P6V,P25V,N25V") String value)
@Command(name="setvoltage", description="Set the voltage") public void setVoltage(@Argument(name="value",description="Voltage to set") double value)
setVoltage in interface LEDDevice@Command(name="setvoltageacq", description="Set the voltage to the acquisition set point") public void setVoltageAcq(int cfgstate)
setVoltageAcq in interface LEDDevice@Command(name="setrunbias", description="Sets the bias value for acquisition") public void setRunBias(double runBias, int cfgstate)
@Command(name="getrunbias", description="Returns the bias value for acquisition") public double getRunBias(int cfgstate)
@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)
@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, @Argument(name="nsteps",description="number of steps") int nsteps)
@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 LEDDevice@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)
@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()
@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="setoutput", description="Turn output on or off. 1 ==> ON") public void setOutput(@Argument(name="state",description="Output state: on or off") int state)
@Command(name="showoutput", description="Show the output state") public boolean showOutput()
showOutput in interface LEDDeviceprotected 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="setstate", description="set agilent device status") public void setState(int istate)
@Command(name="getstate", description="get agilent device status") public int getState()
Copyright © 2016 LSST. All rights reserved.