public class TestLS330 extends Object
| Constructor and Description |
|---|
TestLS330() |
| Modifier and Type | Method and Description |
|---|---|
String |
getControlChannel() |
Double |
getControlData() |
String |
getControlUnits() |
String |
getMode() |
String |
getSampleChannel() |
Double |
getSampleData() |
String |
getSampleUnits() |
Double |
getSetpoint() |
Boolean |
isInControl() |
void |
open(String MyDevId) |
void |
openftdi(String host,
int baud) |
String |
readident() |
void |
reset() |
void |
setControlChannel(String chan) |
void |
setControlUnits(String units) |
void |
setMode(int mode) |
void |
setSampleChannel(String chan) |
void |
setSampleUnits(String units) |
void |
setSetpoint(double temp) |
protected LS330 mydev
@Command(name="open",
description="Open a device for use")
public void open(@Argument(name="devId",description="The device ID of the device to open")
String MyDevId)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="openftdi",
description="Open FTDI connection to device")
public void openftdi(@Argument(name="serialname",description="Serial device name")
String host,
@Argument(name="baud",description="baud")
int baud)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="reset",
description="Reset device")
public void reset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readident",
description="Return ID of device")
public String readident()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getMode",
description="Return current mode [0,2]")
public String getMode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setMode",
description="Set the mode [0,2]")
public void setMode(@Argument(name="mode",description="Mode Setting 0=LOC, 1=REM, 2=REMwithLockout")
int mode)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getSetpoint",
description="Return the current setpoint")
public Double getSetpoint()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setSetpoint",
description="set the setpoint")
public void setSetpoint(@Argument(name="temperature",description="Temperature setting")
double temp)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getControlChannel",
description="return current control channel")
public String getControlChannel()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setControlChannel",
description="set the Control channel")
public void setControlChannel(@Argument(name="channel",description="Channel A or B")
String chan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getControlUnits",
description="returns current control units")
public String getControlUnits()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setControlUnits",
description="set Control Units to K or C")
public void setControlUnits(@Argument(name="units",description="K or C")
String units)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getControlData",
description="returns sample sensor data")
public Double getControlData()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getSampleChannel",
description="returns sample channel: A or B")
public String getSampleChannel()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setSampleChannel",
description="set sample channel to A or B")
public void setSampleChannel(@Argument(name="channel",description="set sample channel to A or B")
String chan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getSampleUnits",
description="returns Sample units: K (kelvin), C (celsius), V (volts), R (Ohms), or M (millivolts) but should not see last three?")
public String getSampleUnits()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setSampleUnits",
description="setSampleUnits to K or C")
public void setSampleUnits(@Argument(name="units",description="units K or C")
String units)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getSampleData",
description="returns sample temperature measurement")
public Double getSampleData()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="isInControl",
description="queries autotune setting")
public Boolean isInControl()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2016 LSST. All rights reserved.