
public class NewportLampSimDevice extends org.lsst.ccs.monitor.Device implements LampDevice
| Constructor and Description |
|---|
NewportLampSimDevice(org.lsst.ccs.drivers.commons.DriverConstants.ConnType itype,
String devcName,
int baud) |
NewportLampSimDevice(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close()
Closes the connection.
|
String |
genericRead(String command) |
double |
getLampCurrent()
returns the current read from the NewportLamp device
**************************************************************************
|
String |
getLampHrs() |
String |
getLampIdent()
returns the identity read from the NewportLamp device *
**************************************************************************
|
double |
getLampPower()
returns the current read from the NewportLamp device
**************************************************************************
|
int |
getPowerPreset() |
double |
getRunlampcurr(int iwstate) |
String |
getStatus() |
String |
getType()
returns the lamp type as defined by the subsys or user *
**************************************************************************
|
double |
getVolts() |
protected void |
initialize()
Initializes the connection.
|
boolean |
isLampPowerOn()
isLampPowerOn - Is the NewportLamp Device on? *
**************************************************************************
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
void |
setLampCurrent(double current)
sets the current for the NewportLamp device *
**************************************************************************
|
void |
setLampPower(double current)
returns the current read from the NewportLamp device *
**************************************************************************
|
void |
setLampPowerEnable(boolean on)
enables/disable the power to the lamp *
**************************************************************************
|
void |
setPowerPreset(int powerPreset) |
void |
setRunlampcurr(double runlampcurr,
int iwstate) |
void |
setType(String type)
defines the lamp type *
**************************************************************************
|
addLine, checkChannel, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initDevice, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinepublic NewportLampSimDevice(String host, int port) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic NewportLampSimDevice(org.lsst.ccs.drivers.commons.DriverConstants.ConnType itype,
String devcName,
int baud)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="isLampPowerOn", description="returns whether the NewportLamp device is active") public boolean isLampPowerOn()
isLampPowerOn in interface LampDevice@Command(name="setLampPowerEnable", description="enables/disables the power to the lamp from the NewportLamp device") public void setLampPowerEnable(@Argument(name="enable",description="enables/disables lamp power") boolean on)
setLampPowerEnable in interface LampDevice@Command(type=QUERY, name="getLampCurrent", description="returns the #amps read from the NewportLamp device") public double getLampCurrent()
getLampCurrent in interface LampDevice@Command(name="setLampCurrent", description="(not implemented) sets the current for the NewportLamp device") public void setLampCurrent(double current)
setLampCurrent in interface LampDevice@Command(type=QUERY, name="getLampPower", description="returns the #amps read from the NewportLamp device") public double getLampPower()
getLampPower in interface LampDevice@Command(name="setLampPower", description="(not implimented) sets the power for the NewportLamp device") public void setLampPower(double current)
@Command(name="setType", description="define lamp type") public void setType(String type)
setType in interface LampDevice@Command(name="getType", description="returns the lamp type") public String getType()
getType in interface LampDevice@Command(name="getLampIdent", description="returns the identity read from the NewportLamp device") public String getLampIdent()
getLampIdent in interface LampDeviceprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.monitor.Devicepublic void setRunlampcurr(double runlampcurr,
int iwstate)
public double getRunlampcurr(int iwstate)
@Command(name="setPowerPreset", description="Set the power preset", type=ACTION) public void setPowerPreset(@Argument(name="powerPreset",description="desired power") int powerPreset) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getStatus", description="Read Status", type=QUERY) public String getStatus() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getPowerPreset", description="Read Power Preset", type=QUERY) public int getPowerPreset() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getVolts", description="Read Volts", type=QUERY) public double getVolts() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getLampHrs", description="Read Lamp Hrs", type=QUERY) public String getLampHrs() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="genericRead", description="Generic read", type=QUERY) public String genericRead(@Argument(name="command",description="generic read command") String command) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2021 LSST. All rights reserved.