public class M24C
extends org.lsst.ccs.drivers.scpi.Scpi
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 |
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() |
| Modifier and Type | Method and Description |
|---|---|
void |
enableOtd(boolean enab)
Sets whether Over Temperature Disconnect (OTD) is enabled
|
String |
getControl()
Gets the temperature control state
|
String |
getControlType(int loop)
Gets the control type for a loop
|
double |
getHeaterMax(int loop)
Gets the maximum heater power for a loop
|
double |
getHeaterPower(int loop)
Gets the heater power for a manually-controlled loop
|
String |
getHeaterRange(int loop)
Gets the heater range for a loop
|
double |
getHtrRead(int loop)
Gets the heater power level for a loop
|
double |
getMaxSetPoint(int loop)
Gets the maximum set point for a loop
|
char |
getOtdSource()
Gets the OTD source channel
|
double |
getOtdTemp()
Gets the OTD temperature limit
|
double |
getPID_D(int loop)
Deprecated.
|
double |
getPID_I(int loop)
Deprecated.
|
double |
getPID_P(int loop)
Deprecated.
|
double |
getPidD(int loop)
Gets the PID D parameter for a loop
|
double |
getPidI(int loop)
Gets the PID I parameter for a loop
|
double |
getPidP(int loop)
Gets the PID P parameter for a loop
|
double |
getSetPoint(int loop)
Gets the current set point for a loop
|
char |
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
|
boolean |
isOtdEnabled()
Gets whether Over Temperature Disconnect (OTD) is enabled
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType type,
String ident,
int parm1,
int parm2)
Opens a connection to the device.
|
String |
readString(String cmnd)
Reads a string response after sending a command.
|
void |
setControlType(int loop,
String type)
Sets the control type for a loop
|
void |
setHeaterMax(int loop,
double power)
Sets the maximum heater power for a loop
|
void |
setHeaterPower(int loop,
double power)
Sets the heater power for a manually-controlled loop
|
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 |
setOtdSource(char channel)
Sets the OTD source channel
|
void |
setOtdTemp(double temp)
Sets the OTD temperature limit
|
void |
setPidD(int loop,
double dValue)
Sets the PID D parameter for a loop.
|
void |
setPidI(int loop,
double iValue)
Sets the PID I parameter for a loop.
|
void |
setPidP(int loop,
double pValue)
Sets the PID P parameter 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 |
stopControl()
Sets the device to stop temperature control
|
void |
writeCommand(String cmnd)
Sends a command.
|
checkError, checkIdentification, clearStatus, enableOperationComplete, getError, getEventStatus, getEventStatusEnable, getIdentification, getOperationComplete, getServiceRequestEnable, getStatusByte, makeChannelList, makeChannelList, readDouble, readDoubleArray, readFloat, readFloatArray, readInteger, readIntegerArray, readStringArray, reset, runSelfTest, setEventStatusEnable, setServiceRequestEnable, testIdentification, waitCompletionclose, 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 NUM_LOOPS
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 type of connection to makeident - The device identifier:
host name or IP address for network;
device name for serialparm1 - The first device parameter:
port number for network;
baud rate for serialparm2 - The second device parameter:
unused for network;
encoded data characteristics for serial:
0 sets 8-bit, no parity, 1 stop bit, no flow ctrlorg.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 void setPidP(int loop,
double pValue)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)pValue - The P value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getPidP(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverException@Deprecated public double getPID_P(int loop) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPidI(int loop,
double iValue)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)iValue - The I value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getPidI(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverException@Deprecated public double getPID_I(int loop) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPidD(int loop,
double dValue)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)dValue - The D value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getPidD(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverException@Deprecated public double getPID_D(int loop) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic char 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 String getControlType(int loop) throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setControlType(int loop,
String type)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)type - The type string: OFF, PID, MAN, TABLE. RAMPP or RAMPTorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getHeaterRange(int loop) throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)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, LOW, 10V or 5Vorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getHeaterMax(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setHeaterMax(int loop,
double power)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)power - The heater power as a percentage of the maximumorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getHeaterPower(int loop)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setHeaterPower(int loop,
double power)
throws org.lsst.ccs.drivers.commons.DriverException
loop - The loop number (1-4)power - The heater power as a percentage of the maximumorg.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 void stopControl()
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 getControl() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isOtdEnabled()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void enableOtd(boolean enab)
throws org.lsst.ccs.drivers.commons.DriverException
enab - Whether OTD is to be enabledorg.lsst.ccs.drivers.commons.DriverExceptionpublic char getOtdSource()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setOtdSource(char channel)
throws org.lsst.ccs.drivers.commons.DriverException
channel - The channel ID (A-D)org.lsst.ccs.drivers.commons.DriverExceptionpublic double getOtdTemp()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setOtdTemp(double temp)
throws org.lsst.ccs.drivers.commons.DriverException
temp - The temperature, in source channel unitsorg.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 © 2023 LSST. All rights reserved.