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.ConnType, 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| 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() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
String |
getControlChannel()
Get the Lakeshore 330 control channel
Communication with instrument:
CCHN? Control Channel Query.
|
Double |
getControlData()
Get the Lakeshore 330 control channel data measurement
Communication with instrument:
CDAT? Sample Sensor Data Query.
|
String |
getControlUnits()
Get the Lakeshore 330 control loop temperature units
Communication with instrument:
CUNI? Control Units Query.
|
double |
getHeater()
Gets the Lakeshore 330 heater current
Communication with instrument:
HEAT? Heater Output Query
Input: HTR? loop[term]
Returned: heater_value[term]
Format: +nnn.n
heater_value: heater output in percent (%) of current or power,
depending on setting.
|
int |
getHeaterRange()
Gets the Lakeshore 330 heater range
RANG? Heater Range Query
Input: RANGE? loop[term]
Format: n
Returned: range[term]
Format: n (Refer to command for description)
|
String |
getIdent()
Get the Lakeshore 330 identity.
|
String |
getMode() |
String |
getSampleChannel()
Get the Lakeshore 330 sample channel
Communication with instrument:
CCHN? Control Channel Query.
|
Double |
getSampleData()
Get the Lakeshore 330 sample channel data measurement
Communication with instrument:
SDAT? Sample Sensor Data Query.
|
String |
getSampleUnits()
Gets the Lakeshore 330 sample channel temperature units
Communication with instrument:
SUNI? Sample Units Query.
|
double |
getSetpoint()
Get the Lakeshore 330 temperature set point
Communication with instrument:
SETP? Control Setpoint Query
Command: SETP?[term]
Returned: value[term]
Format: ±nnnnnn
|
void |
init()
Initializes device.
|
boolean |
isInControl()
isInControl
Autotuning status query,
0 = Manual, 1 = P, 2 = PI, and 3 = PID
|
void |
open(String serialname,
int baud)
Opens a connection.
|
void |
openftdi(String serialname,
int baud)
Opens an FTDI 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
Communication with instrument:
CCHN Set Control Channel to A or B.
|
void |
setControlUnits(String unitstr)
Sets the Lakeshore 330 units
Communication with instrument:
CUNI Set Units for the Control Channel.
|
void |
setFakeout(Boolean flag)
set Fakeout true or false
|
void |
setHeaterRange(int range)
Sets the Lakeshore 330 heater range
Communication with instrument:
RANGE Heater Range Command
Input: RANG range[term]
Format: n,n
range: 0 = Off, 1 = Low, 2 = Medium, 3 = High
|
void |
setMode(LS330.Modes mode) |
void |
setSampleChannel(String chan)
Sets the Lakeshore 330 sample channel
Communication with instrument:
SCHN Set Sample Channel to A or B.
|
void |
setSampleUnits(String unitstr)
Sets the Lakeshore 330 sample channel units
Communication with instrument:
SUNI Set Units for the Sample Channel.
|
void |
setSetpoint(double setp)
Sets the Lakeshore 330 temperature set point
Communication with instrument:
SETP Control Setpoint Command
Command: SETP value[term]
Format: n,±nnnnnn
value: The value for the setpoint (in whatever units the device is using).
|
void |
setTimeout(int timeout)
Sets the receive timeout.
|
void |
setTracedebug(Boolean flag)
set TraceDebug true or false
|
void |
setVerbose(Boolean flag)
set Verbosity
|
void |
writeLS330(String command)
Writes a command.
|
public static final int MODE_LOCAL
public static final int MODE_REMOTE
public static final int MODE_REMOTEWITHLOCKOUT
public LS330()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String serialname, int baud) throws org.lsst.ccs.drivers.commons.DriverException
serialname - baud - org.lsst.ccs.drivers.commons.DriverExceptionpublic void openftdi(String serialname, int baud) throws org.lsst.ccs.drivers.commons.DriverException
serialname - baud - org.lsst.ccs.drivers.commons.DriverExceptionpublic void init()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
close in class org.lsst.ccs.drivers.ascii.Asciiorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setVerbose(Boolean flag) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTracedebug(Boolean flag) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setFakeout(Boolean flag) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTimeout(int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
setTimeout in class org.lsst.ccs.drivers.ascii.Asciitimeout - The receive timeout (ms).org.lsst.ccs.drivers.commons.DriverExceptionpublic 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 - a command stringorg.lsst.ccs.drivers.commons.DriverExceptionpublic String readLS330() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String readLS330(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - command stringorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2016 LSST. All rights reserved.