public class LS330
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Class and Description |
|---|---|
static class |
LS330.HeaterRange |
static class |
LS330.Modes |
static class |
LS330.onOff |
org.lsst.ccs.drivers.ascii.Ascii.DataBits, org.lsst.ccs.drivers.ascii.Ascii.FlowCtrl, org.lsst.ccs.drivers.ascii.Ascii.Option, org.lsst.ccs.drivers.ascii.Ascii.Parity, org.lsst.ccs.drivers.ascii.Ascii.StopBits, org.lsst.ccs.drivers.ascii.Ascii.Terminator| Modifier and Type | Field and Description |
|---|---|
static int |
MODE_LOCAL
Public constants
|
static int |
MODE_REMOTE
Public constants
|
static int |
MODE_REMOTEWITHLOCKOUT
Public constants
|
| Constructor and Description |
|---|
LS330()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getControlChannel()
Get the Lakeshore 330 control channel.
|
Double |
getControlData()
Get the Lakeshore 330 control channel data measurement.
|
String |
getControlUnits()
Gets the Lakeshore 330 control loop temperature units.
|
double |
getHeater()
Gets the Lakeshore 330 heater current.
|
int |
getHeaterRange()
Gets the Lakeshore 330 heater range.
|
String |
getIdent()
Get the Lakeshore 330 identity.
|
String |
getMode() |
String |
getSampleChannel()
Get the Lakeshore 330 sample channel.
|
Double |
getSampleData()
Get the Lakeshore 330 sample channel data measurement.
|
String |
getSampleUnits()
Gets the Lakeshore 330 sample channel temperature units.
|
double |
getSetpoint()
Get the Lakeshore 330 temperature set point.
|
void |
init()
Initializes device.
|
boolean |
isInControl()
Gets whether in control.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType type,
String ident,
int parm1,
int parm2)
Opens a connection.
|
String |
readLS330()
Reads a response.
|
String |
readLS330(String command)
Reads a response after writing a command.
|
void |
reset() |
void |
setControlChannel(String chan)
Sets the Lakeshore 330 control channel.
|
void |
setControlUnits(String unitstr)
Sets the Lakeshore 330 units.
|
void |
setFakeout(boolean flag)
Set Fakeout
|
void |
setHeaterRange(int range)
Sets the Lakeshore 330 heater range.
|
void |
setMode(LS330.Modes mode) |
void |
setSampleChannel(String chan)
Sets the Lakeshore 330 sample channel.
|
void |
setSampleUnits(String unitstr)
Sets the Lakeshore 330 sample channel units.
|
void |
setSetpoint(double setp)
Sets the Lakeshore 330 temperature set point.
|
void |
setTracedebug(boolean flag)
Set Trace/Debug
|
void |
setVerbose(boolean flag)
Set Verbosity
|
void |
writeLS330(String command)
Writes a command.
|
close, closeSilent, flush, getConnTimeout, getTimeout, isDropEcho, isOpen, makeDataCharacteristics, open, open, openFtdi, openFtdi, openFtdi, openNet, openNet, openSerial, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setConnTimeout, setConnTimeout, setDefaultBaud, setDefaultParm, setDefaultPort, setMultidrop, setOptions, setResponseTerm, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic static final int MODE_LOCAL
public static final int MODE_REMOTE
public static final int MODE_REMOTEWITHLOCKOUT
public void open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType type,
String ident,
int parm1,
int parm2)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.Asciitype - The enumerated connection typeident - The device identifierparm1 - The first parameter (baud rate)parm2 - The second parameter (data characteristics)org.lsst.ccs.drivers.commons.DriverExceptionpublic void init()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVerbose(boolean flag)
flag - Verbosity flagpublic void setTracedebug(boolean flag)
flag - Trace/debud flagpublic void setFakeout(boolean flag)
flag - Fakeout (simulation) flagpublic String getIdent() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void reset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getMode() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setMode(LS330.Modes mode) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getSetpoint()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setSetpoint(double setp)
throws org.lsst.ccs.drivers.commons.DriverException
setp - Value (in current units) for temperature set pointorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getControlChannel() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setControlChannel(String chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel to use for control: A or Borg.lsst.ccs.drivers.commons.DriverExceptionpublic String getControlUnits() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setControlUnits(String unitstr) throws org.lsst.ccs.drivers.commons.DriverException
unitstr - units string: 'K' = kelvin, 'C' = Celsiusorg.lsst.ccs.drivers.commons.DriverExceptionpublic Double getControlData() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getSampleChannel() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setSampleChannel(String chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel to use for sampling: A or Borg.lsst.ccs.drivers.commons.DriverExceptionpublic String getSampleUnits() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setSampleUnits(String unitstr) throws org.lsst.ccs.drivers.commons.DriverException
unitstr - units string: 'K' = kelvin, 'C' = Celsiusorg.lsst.ccs.drivers.commons.DriverExceptionpublic Double getSampleData() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getHeater()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getHeaterRange()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isInControl()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setHeaterRange(int range)
throws org.lsst.ccs.drivers.commons.DriverException
range - Specifies the control mode. Valid entries:
For loop 1: 0 = Off, 1 = Low (2.5 W), 2 = High (25 W)
For loop 2: 0 = Off, 1 = Onorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeLS330(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to write, excluding terminatororg.lsst.ccs.drivers.commons.DriverExceptionpublic String readLS330() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2023 LSST. All rights reserved.