public class Dcs
extends org.lsst.ccs.drivers.scpi.Scpi
implements org.lsst.ccs.drivers.commons.PowerSupplyDriver
| Modifier and Type | Class and Description |
|---|---|
static class |
Dcs.StatusBlock
Status block contents.
|
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 |
N_STAT_FIELDS
Public constants.
|
static int |
STAT_ACCUM_STATUS
Public constants.
|
static int |
STAT_CHANNEL
Public constants.
|
static int |
STAT_CURRENT
Public constants.
|
static int |
STAT_CURRENT_ADC_GAIN
Public constants.
|
static int |
STAT_CURRENT_ADC_OFFSET
Public constants.
|
static int |
STAT_CURRENT_DAC_GAIN
Public constants.
|
static int |
STAT_CURRENT_DAC_OFFSET
Public constants.
|
static int |
STAT_ERROR
Public constants.
|
static int |
STAT_FAULT
Public constants.
|
static int |
STAT_FAULT_MASK
Public constants.
|
static int |
STAT_MODEL
Public constants.
|
static int |
STAT_ONLINE
Public constants.
|
static int |
STAT_OVER_VOLTAGE
Public constants.
|
static int |
STAT_OVP_CALIBRATED
Public constants.
|
static int |
STAT_OVP_DAC_GAIN
Public constants.
|
static int |
STAT_OVP_DAC_OFFSET
Public constants.
|
static int |
STAT_SERIAL
Public constants.
|
static int |
STAT_STATUS
Public constants.
|
static int |
STAT_STATUS_FLAGS
Public constants.
|
static int |
STAT_VOLTAGE
Public constants.
|
static int |
STAT_VOLTAGE_ADC_GAIN
Public constants.
|
static int |
STAT_VOLTAGE_ADC_OFFSET
Public constants.
|
static int |
STAT_VOLTAGE_DAC_GAIN
Public constants.
|
static int |
STAT_VOLTAGE_DAC_OFFSET
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 |
|---|
Dcs() |
| Modifier and Type | Method and Description |
|---|---|
double |
getCurrent()
Reads back the set current.
|
double |
getCurrent(int chan)
Reads back the set current.
|
double |
getCurrentLimit()
Reads back the soft current limit.
|
boolean |
getLocal()
Gets the local mode.
|
boolean |
getOutput()
Gets the output state.
|
boolean |
getOutput(int chan)
Gets the output state.
|
Dcs.StatusBlock |
getStatusBlock()
Gets the source status block.
|
double |
getVoltage()
Reads back the set voltage.
|
double |
getVoltage(int chan)
Reads back the set voltage.
|
double |
getVoltageLimit()
Reads back the soft voltage limit.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType type,
String ident,
int parm1,
int parm2)
Opens a connection to the power supply.
|
double |
readCurrent()
Reads the actual current.
|
double |
readCurrent(int chan)
Reads the actual current.
|
double |
readVoltage()
Reads the actual voltage.
|
double |
readVoltage(int chan)
Reads the actual voltage.
|
void |
setCurrent(double value)
Sets the current.
|
void |
setCurrent(double value,
int chan)
Sets the current.
|
void |
setCurrentLimit(double value)
Sets the soft current limit.
|
void |
setLocal(boolean on)
Turns local mode on or off.
|
void |
setOffDelay(double delay,
int chan)
Sets the power-off delay.
|
void |
setOnDelay(double delay,
int chan)
Sets the power-on delay.
|
void |
setOutput(boolean on)
Turns the output on or off.
|
void |
setOutput(boolean on,
int chan)
Turns the output on or off.
|
void |
setVoltage(double value)
Sets the voltage.
|
void |
setVoltage(double value,
int chan)
Sets the voltage.
|
void |
setVoltageLimit(double value)
Sets the soft voltage limit.
|
checkError, checkIdentification, clearStatus, enableOperationComplete, getError, getEventStatus, getEventStatusEnable, getIdentification, getOperationComplete, getServiceRequestEnable, getStatusByte, makeChannelList, makeChannelList, readDouble, readDoubleArray, readFloat, readFloatArray, readInteger, readIntegerArray, readString, readStringArray, reset, runSelfTest, setEventStatusEnable, setServiceRequestEnable, testIdentification, waitCompletion, writeCommandclose, 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 STAT_CHANNEL
public static final int STAT_ONLINE
public static final int STAT_STATUS_FLAGS
public static final int STAT_STATUS
public static final int STAT_ACCUM_STATUS
public static final int STAT_FAULT_MASK
public static final int STAT_FAULT
public static final int STAT_ERROR
public static final int STAT_SERIAL
public static final int STAT_VOLTAGE
public static final int STAT_CURRENT
public static final int STAT_OVER_VOLTAGE
public static final int STAT_VOLTAGE_DAC_GAIN
public static final int STAT_VOLTAGE_DAC_OFFSET
public static final int STAT_CURRENT_DAC_GAIN
public static final int STAT_CURRENT_DAC_OFFSET
public static final int STAT_OVP_DAC_GAIN
public static final int STAT_OVP_DAC_OFFSET
public static final int STAT_VOLTAGE_ADC_GAIN
public static final int STAT_VOLTAGE_ADC_OFFSET
public static final int STAT_CURRENT_ADC_GAIN
public static final int STAT_CURRENT_ADC_OFFSET
public static final int STAT_MODEL
public static final int STAT_OVP_CALIBRATED
public static final int N_STAT_FIELDS
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 device parameter, or 0 for default:
port number for network (default 9221)
baud rate for serial (default 19200)parm2 - The second device parameter (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltage(double value,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
setVoltage in interface org.lsst.ccs.drivers.commons.PowerSupplyDrivervalue - The voltage value to setchan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltage(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The voltage value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
getVoltage in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverchan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
readVoltage in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverchan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic double readVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltageLimit(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The voltage limit value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltageLimit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrent(double value,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
setCurrent in interface org.lsst.ccs.drivers.commons.PowerSupplyDrivervalue - The current value to setchan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrent(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The current value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrent(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
getCurrent in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverchan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readCurrent(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
readCurrent in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverchan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic double readCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrentLimit(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The current limit value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrentLimit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setOutput(boolean on,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
setOutput in interface org.lsst.ccs.drivers.commons.PowerSupplyDriveron - If true, turn the output on, otherwise turn it off.chan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setOutput(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - If true, turn the output on, otherwise turn it off.org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean getOutput(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
getOutput in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverchan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean getOutput()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setOnDelay(double delay,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
setOnDelay in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverdelay - The delay (secs)chan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverException - if delay is non-zeropublic void setOffDelay(double delay,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
setOffDelay in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverdelay - The delay (secs)chan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverException - if delay is non-zeropublic void setLocal(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - If true, turn local mode on, otherwise turn it off.org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean getLocal()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic Dcs.StatusBlock getStatusBlock() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2023 LSST. All rights reserved.