public class Dcs
extends org.lsst.ccs.drivers.scpi.Scpi
| Modifier and Type | Class and Description |
|---|---|
static class |
Dcs.StatusBlock
Status block contents.
|
| 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 |
getCurrentLimit()
Reads back the soft current limit.
|
boolean |
getLocal()
Gets the local mode.
|
boolean |
getOutput()
Gets the output state.
|
Dcs.StatusBlock |
getStatusBlock()
Gets the source status block.
|
double |
getVoltage()
Reads back the set voltage.
|
double |
getVoltageLimit()
Reads back the soft voltage limit.
|
void |
open(int type,
String ident)
Opens a connection to the power supply.
|
void |
open(int type,
String ident,
int parm)
Opens a connection to the power supply.
|
double |
readCurrent()
Reads the actual current.
|
double |
readVoltage()
Reads the actual voltage.
|
void |
setCurrent(double value)
Sets the current.
|
void |
setCurrentLimit(double value)
Sets the soft current limit.
|
void |
setLocal(boolean on)
Turns local mode on or off.
|
void |
setOutput(boolean on)
Turns the output on or off.
|
void |
setVoltage(double value)
Sets the voltage.
|
void |
setVoltageLimit(double value)
Sets the soft voltage limit.
|
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, writeCommandpublic 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(int type,
String ident)
throws org.lsst.ccs.drivers.commons.DriverException
type - The type of connection to makeident - The device identifier:
host name or IP address for network
serial number for FTDI device
device name for serialorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(int type,
String ident,
int parm)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.Asciitype - The type of connection to makeident - The device identifier:
host name or IP address for network
serial number for FTDI device
device name for serialparm - The device parameter:
port number for network
device index for FTDI
ignored for serialorg.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()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionDriverTimeoutExceptionpublic double readVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionDriverTimeoutExceptionpublic 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.DriverExceptionDriverTimeoutExceptionpublic void setCurrent(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The current value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionDriverTimeoutExceptionpublic double readCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionDriverTimeoutExceptionpublic 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.DriverExceptionDriverTimeoutExceptionpublic 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()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionDriverTimeoutExceptionpublic 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.DriverExceptionDriverTimeoutExceptionpublic Dcs.StatusBlock getStatusBlock() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionDriverTimeoutExceptionCopyright © 2014 LSST. All rights reserved.