public class N6700
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 |
CHAN_INFO_MODEL |
static int |
CHAN_INFO_OPTION |
static int |
CHAN_INFO_SERIAL |
static int |
CURRENT_MODE |
static int |
DEFAULT_PORT |
static int |
MAX_CHANNEL |
static int |
MIN_CHANNEL |
static int |
NUM_CHANNELS |
static int |
VOLTAGE_MODE |
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 |
|---|
N6700()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getChannelInfo(int chan)
Gets channel information.
|
double |
getCurrent(int chan)
Gets the set current.
|
double[] |
getCurrent(int[] chan)
Gets the set currents.
|
double |
getCurrentLimit(int chan)
Gets the current limit.
|
double |
getOffDelay(int chan)
Gets the output-off delay.
|
double[] |
getOffDelay(int[] chan)
Gets output-off delays.
|
double |
getOnDelay(int chan)
Gets the output-on delay.
|
double[] |
getOnDelay(int[] chan)
Gets output-on delays.
|
boolean |
getOutput(int chan)
Gets the output state.
|
boolean[] |
getOutput(int[] chan)
Gets output states.
|
double |
getVoltage(int chan)
Gets the set voltage.
|
double[] |
getVoltage(int[] chan)
Gets set voltages.
|
double |
getVoltageLimit(int chan)
Gets the voltage limit.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String hostname,
int port,
int parm2)
Opens a connection.
|
void |
open(String hostname)
Opens a connection.
|
void |
open(String hostname,
int port)
Opens a connection.
|
double |
readCurrent(int chan)
Reads the current.
|
double[] |
readCurrent(int[] chan)
Reads currents.
|
double |
readVoltage(int chan)
Reads the voltage.
|
double[] |
readVoltage(int[] chan)
Reads voltages.
|
void |
setCurrent(double value,
int chan)
Sets the current.
|
void |
setCurrentLimit(double limit,
int chan)
Sets the current limit.
|
void |
setOffDelay(double time,
int chan)
Sets the output-off delay.
|
void |
setOnDelay(double time,
int chan)
Sets the output-on delay.
|
void |
setOutput(boolean on,
int chan)
Turns output on or off.
|
void |
setOutput(boolean on,
int[] chan)
Turns outputs on or off.
|
void |
setPriorityMode(int vctype,
int chan)
Sets the priority mode (voltage or current).
|
void |
setSlewRate(double rate,
int chan)
Sets the slew rate.
|
void |
setVoltage(double value,
int chan)
Sets the voltage.
|
void |
setVoltageLimit(double limit,
int chan)
Sets the 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, getTimeout, isOpen, makeDataCharacteristics, open, open, openFtdi, openFtdi, openFtdi, openNet, openNet, openSerial, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setDefaultParm, setMultidrop, setOptions, setResponseTerm, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic static final int VOLTAGE_MODE
public static final int CURRENT_MODE
public static final int CHAN_INFO_MODEL
public static final int CHAN_INFO_OPTION
public static final int CHAN_INFO_SERIAL
public static final int MIN_CHANNEL
public static final int MAX_CHANNEL
public static final int NUM_CHANNELS
public static final int DEFAULT_PORT
public void open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String hostname,
int port,
int parm2)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.AsciiconnType - The connection type (must be NET)hostname - The network host nameport - The network port number, or 0 for the default (5025)parm2 - The second parameter (not used)org.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String hostname) throws org.lsst.ccs.drivers.commons.DriverException
hostname - The network host nameorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String hostname, int port) throws org.lsst.ccs.drivers.commons.DriverException
hostname - The network host nameport - The network port numberorg.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 output on if true, off if falsechan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setOutput(boolean on,
int[] chan)
throws org.lsst.ccs.drivers.commons.DriverException
on - Turn outputs on if true, off if falsechan - The array of channel numbersorg.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 numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean[] getOutput(int[] chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The array of channel numbersorg.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 time to setchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getOnDelay(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] getOnDelay(int[] chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The array of channel numbersorg.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 time to setchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getOffDelay(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] getOffDelay(int[] chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The array of channel numbersorg.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 to setchan - The channel numberorg.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 numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] getVoltage(int[] chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The array of channel numbersorg.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 numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readVoltage(int[] chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The array of channel numbersorg.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 to setchan - The channel numberorg.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 numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] getCurrent(int[] chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The array of channel numbersorg.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 numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readCurrent(int[] chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The array of channel numbersorg.lsst.ccs.drivers.commons.DriverExceptionpublic String[] getChannelInfo(int chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setPriorityMode(int vctype,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
vctype - The mode to setchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setSlewRate(double rate,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
rate - The slew rate to setchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltageLimit(double limit,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
limit - The limit to setchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltageLimit(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrentLimit(double limit,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
limit - The limit to setchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrentLimit(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2019 LSST. All rights reserved.