public class XLNSeries
extends org.lsst.ccs.drivers.scpi.Scpi
implements org.lsst.ccs.drivers.commons.PowerSupplyDriver
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 |
DEFAULT_BAUDRATE |
static int |
STATUS_AC_LOW |
static int |
STATUS_CCCV |
static int |
STATUS_CCCV_ENAB |
static int |
STATUS_CVCC |
static int |
STATUS_CVCC_ENAB |
static int |
STATUS_LCD_ON |
static int |
STATUS_OCP |
static int |
STATUS_OCP_ENAB |
static int |
STATUS_OPP |
static int |
STATUS_OPP_ENAB |
static int |
STATUS_OTP |
static int |
STATUS_OUTPUT_ON |
static int |
STATUS_OVP |
static int |
STATUS_OVP_ENAB |
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 |
|---|
XLNSeries()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkError()
Checks for command error.
|
double |
getCurrent(int chan)
Gets the set current for a channel.
|
double |
getCurrentLimit(int chan)
Gets the current limit for a channel.
|
int |
getEventStatus()
Gets the event status register value.
|
int |
getEventStatusEnable()
Gets the event status enable register value.
|
int |
getOperationComplete()
Gets the operation complete state.
|
boolean |
getOutput(int chan)
Gets the output state of a channel.
|
int |
getServiceRequestEnable()
Gets the service request enable register value.
|
int |
getStatusByte()
Gets the status byte value.
|
int |
getStatusWord()
Gets the status word.
|
double |
getVoltage(int chan)
Gets the set voltage for a channel.
|
double |
getVoltageLimit(int chan)
Gets the voltage limit for a channel.
|
void |
lockPanel(boolean lock)
Locks or unlocks the front panel.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int baudRate,
int commParm)
Opens a connection.
|
double |
readCurrent(int chan)
Reads the current for a channel.
|
double |
readVoltage(int chan)
Reads the voltage for a channel.
|
void |
setCurrent(double value,
int chan)
Sets the current for a channel.
|
void |
setCurrentLimit(double value,
int chan)
Sets the current limit for a channel.
|
void |
setOffDelay(double time,
int chan)
Sets the power-off delay for a channel.
|
void |
setOnDelay(double time,
int chan)
Sets the power-on delay for a channel.
|
void |
setOutput(boolean on,
int chan)
Turns output on or off for a channel.
|
void |
setVoltage(double value,
int chan)
Sets the voltage for a channel.
|
void |
setVoltageLimit(double value,
int chan)
Sets the voltage limit for a channel.
|
checkIdentification, clearStatus, enableOperationComplete, getError, getIdentification, 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, setDefaultParm, setMultidrop, setOptions, setResponseTerm, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic static final int DEFAULT_BAUDRATE
public static final int STATUS_LCD_ON
public static final int STATUS_OUTPUT_ON
public static final int STATUS_CVCC_ENAB
public static final int STATUS_CCCV_ENAB
public static final int STATUS_OPP_ENAB
public static final int STATUS_OCP_ENAB
public static final int STATUS_OVP_ENAB
public static final int STATUS_OTP
public static final int STATUS_AC_LOW
public static final int STATUS_CVCC
public static final int STATUS_CCCV
public static final int STATUS_OPP
public static final int STATUS_OCP
public static final int STATUS_OVP
public void open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int baudRate,
int commParm)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.AsciiconnType - The enumerated connection type: FTDI or SERIALident - The USB ID (FTDI) or port name (SERIAL)baudRate - The baud rate, or 0 for the default (57600)commParm - The communications parametersorg.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 - Turn on if true, off if falsechan - The channel number (ignored)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 void setOnDelay(double time,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
setOnDelay in interface org.lsst.ccs.drivers.commons.PowerSupplyDrivertime - The delay (sec)chan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setOffDelay(double time,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
setOffDelay in interface org.lsst.ccs.drivers.commons.PowerSupplyDrivertime - The delay (sec)chan - The channel number (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 value to setchan - The channel number (ignored)org.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 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 void setCurrent(double value,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
setCurrent in interface org.lsst.ccs.drivers.commons.PowerSupplyDrivervalue - The value to setchan - The channel number (ignored)org.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 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 void setVoltageLimit(double value,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
value - The value to setchan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltageLimit(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrentLimit(double value,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
value - The value to setchan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrentLimit(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel number (ignored)org.lsst.ccs.drivers.commons.DriverExceptionpublic int getStatusWord()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void lockPanel(boolean lock)
throws org.lsst.ccs.drivers.commons.DriverException
lock - True to lock the panel; false to unlock itorg.lsst.ccs.drivers.commons.DriverExceptionprotected void checkError()
throws org.lsst.ccs.drivers.commons.DriverException
checkError in class org.lsst.ccs.drivers.scpi.Scpiorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getEventStatusEnable()
getEventStatusEnable in class org.lsst.ccs.drivers.scpi.Scpipublic int getEventStatus()
getEventStatus in class org.lsst.ccs.drivers.scpi.Scpipublic int getServiceRequestEnable()
getServiceRequestEnable in class org.lsst.ccs.drivers.scpi.Scpipublic int getStatusByte()
getStatusByte in class org.lsst.ccs.drivers.scpi.Scpipublic int getOperationComplete()
getOperationComplete in class org.lsst.ccs.drivers.scpi.ScpiCopyright © 2021 LSST. All rights reserved.