public class M24C
extends org.lsst.ccs.drivers.scpi.Scpi
| Modifier and Type | Field and Description |
|---|---|
static int |
NUM_LOOPS
Public constants
|
CHECK_CONTAINS, CHECK_ENDS_WITH, CHECK_EQUALS, CHECK_MATCHES, CHECK_STARTS_WITH, ESR_ANY_ERROR, ESR_COMMAND_ERROR, ESR_DEVICE_ERROR, ESR_EXECUTION_ERROR, ESR_QUERY_ERROR, IDENT_FW_VERSION, IDENT_MANUFACTURER, IDENT_MODEL_NAME, IDENT_SERIAL_NUMBER, SB_ERROR_QUEUE, SB_EVENT_STATUS, SB_MASTER_STATUS, SB_MESSAGE_AVAILABLE, SB_OPERATION_STATUS, SB_QUESTIONABLE_STATUS| Constructor and Description |
|---|
M24C()
Constructor.
|
M24C(int type,
String ident,
int param)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getHtrRead(int loop)
Gets the heater power level for a loop
|
double |
getMaxSetPoint(int loop)
Gets the maximum set point for a loop
|
double |
getPID_D(int loop)
Gets the PID D parameter for a loop
|
double |
getPID_I(int loop)
Gets the PID I parameter for a loop
|
double |
getPID_P(int loop)
Gets the PID P parameter for a loop
|
double |
getSetPoint(int loop)
Gets the current set point for a loop
|
String |
getSource(int loop)
Gets the channel source for a loop
|
double |
getTemp(char channel)
Reads the temperature of a channel
|
String |
getType(char channel)
Gets the sensor type for a channel
|
char |
getUnit(char channel)
Gets the temperature units for a channel
|
boolean |
isInControl()
Gets whether the device is controlling the temperature
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType type,
String ident,
int parm1,
int parm2)
Opens a connection to the device.
|
void |
openDefault()
Provide open for BNL Default settings
|
String |
readString(String cmnd)
Reads a string response after sending a command.
|
void |
setHeaterRange(int loop,
String range)
Sets the heater range for a loop
|
void |
setMaxSetPoint(int loop,
double temp)
Sets the maximum set point for a loop
|
void |
setSetPoint(int loop,
double temp)
Sets the set point for a loop
|
void |
setSource(int loop,
char channel)
Sets the channel source for a loop
|
void |
setToControl()
Sets the device to control the temperature
|
void |
setType(char channel,
String typ)
Sets the sensor type for a channel
|
void |
setUnit(char channel,
char unit)
Sets the temperature units for a channel
|
void |
writeCommand(String cmnd)
Sends a command.
|
checkIdentification, clearStatus, enableOperationComplete, getError, getEventStatus, getEventStatusEnable, getIdentification, getOperationComplete, getServiceRequestEnable, getStatusByte, makeChannelList, makeChannelList, readDouble, readDoubleArray, readFloat, readFloatArray, readInteger, readIntegerArray, readStringArray, reset, runSelfTest, setEventStatusEnable, setServiceRequestEnable, testIdentification, waitCompletionpublic static final int NUM_LOOPS
public M24C()
@Deprecated public M24C(int type, String ident, int param) throws org.lsst.ccs.drivers.commons.DriverException
type - ident - param - org.lsst.ccs.drivers.commons.DriverExceptionpublic 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 type of connection to makeident - The device identifier:
host name or IP address for network;
[node:]serial number for FTDI device;
device name for serialparm1 - The first device parameter:
port number for network;
baud rate for FTDI or serialparm2 - The second device parameter:
unused for network;
encoded data characteristics for FTDI or serial:
0 sets 8-bit, no parity, 1 stop bit, no flow ctrlorg.lsst.ccs.drivers.commons.DriverExceptionpublic void openDefault()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getMaxSetPoint(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setMaxSetPoint(int loop,
double temp)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)temp - The temperature to set in the units specified via setUnitorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getSetPoint(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setSetPoint(int loop,
double temp)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)temp - The temperature to set in the units specified via setUnitorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getHtrRead(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverExceptionpublic double getPID_P(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverExceptionpublic double getPID_I(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverExceptionpublic double getPID_D(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverExceptionpublic String getSource(int loop) throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setSource(int loop,
char channel)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)channel - The channel ID (A-D)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setHeaterRange(int loop,
String range)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)range - The range string: HI, MID or LOWorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getTemp(char channel)
throws org.lsst.ccs.drivers.commons.DriverException
channel - The channel ID (A-D)org.lsst.ccs.drivers.commons.DriverExceptionpublic char getUnit(char channel)
throws org.lsst.ccs.drivers.commons.DriverException
channel - The channel ID (A-D)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setUnit(char channel,
char unit)
throws org.lsst.ccs.drivers.commons.DriverException
channel - The channel ID (A-D)unit - Temperature unit: K, F, C or S (sensor units)org.lsst.ccs.drivers.commons.DriverExceptionpublic String getType(char channel) throws org.lsst.ccs.drivers.commons.DriverException
channel - The channel ID (A-D)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setType(char channel,
String typ)
throws org.lsst.ccs.drivers.commons.DriverException
channel - The channel ID (A-D)typ - The type string: DIODE, ACR, PTC100, PTC1K, NTC10UA, TC70 or NONEorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setToControl()
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 String readString(String cmnd) throws org.lsst.ccs.drivers.commons.DriverException
readString in class org.lsst.ccs.drivers.scpi.Scpicmnd - The command to sendorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeCommand(String cmnd) throws org.lsst.ccs.drivers.commons.DriverException
writeCommand in class org.lsst.ccs.drivers.scpi.Scpicmnd - The command to sendorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2017 LSST. All rights reserved.