public class N2502
extends org.lsst.ccs.drivers.scpi.Scpi
| Modifier and Type | Class and Description |
|---|---|
static class |
N2502.avg_status |
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.TerminatorCHECK_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 |
|---|
N2502()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accumBuffer(int nreads,
double nplc,
boolean wait)
starts the accumulation of readings in the buffer.
|
void |
clearStat()
Clear Status *
**************************************************************************
|
void |
clrBuff()
Clear the buffer *
**************************************************************************
|
int |
getChannel() |
double |
getCurrent()
Gets the set current.
|
double |
getCurrentLimit()
Gets the set current limit.
|
static double |
getMAXBIAS() |
static double |
getMINBIAS() |
int |
getnAvg() |
boolean |
getOutput()
Gets the output state.
|
double |
getVoltage()
Gets the set voltage.
|
double |
getVoltageLimit()
Gets the set voltage limit.
|
boolean |
isAbort() |
boolean |
isDATAREADY() |
String |
isDo_avg() |
boolean |
isOKTOTALK() |
boolean |
isTrip() |
void |
open()
Opens a connection.using all default parameters
|
void |
open(String devname)
Opens a connection.
|
void |
open(String devname,
int port)
Opens a connection.
|
void |
openftdi(String serialname,
int port)
Opens an FTDI connection.
|
String |
printdevid() |
void |
rampVolts_sweep(double duration,
double value,
int nsteps)
Ramps the voltage to a desired level over a given duration.
|
void |
rampVolts(double duration,
double value)
Ramps the voltage to a desired level over a given duration.
|
void |
rampVolts(double duration,
double value,
int nsteps)
Ramps the voltage to a desired level over a given duration.
|
double[][] |
readBuffer()
Reads the buffer.
|
double |
readCurrent()
Reads the current.
|
double |
readDouble(String command)
Reads a double with SCPI error checking after writing a command.
|
double[][] |
readDoublePairArray(String command)
Reads a double pair array with SCPI error checking after writing a
command.
|
int |
readInteger(String command)
Reads an integer with SCPI error checking after writing a command.
|
String |
readStringKthly(String instr)
Writes a command and reads the (string) result.
|
double |
readVoltage()
Reads the voltage.
|
void |
reset()
Reset *
**************************************************************************
|
void |
setAbort(boolean abort) |
void |
setArmCount(int value)
Sets the ARM count *
**************************************************************************
|
void |
setBuffSize(int value)
Sets the buffer size (#readings up to 3000 for the 2502) *
**************************************************************************
|
void |
setChannel(int channel) |
void |
setCurrent(double value)
Sets the current.
|
void |
setCurrentLimit(double maxima)
Sets the current limit.
|
void |
setCurrentRange(double value)
Sets the current range.
|
void |
setDisplay(boolean dstate)
Sets the display on(true)/off(false)
|
void |
setDo_avg(boolean do_avg_req) |
void |
setnAvg(int nAvg) |
void |
setOKTOTALK(boolean OKTOTALK) |
void |
setOutput(boolean on)
Turns output on or off.
|
void |
setRate(double value)
Sets the integration rate in the number of power line cycles *
**************************************************************************
|
void |
setTrigCount(int value)
Sets the trigger count *
**************************************************************************
|
void |
setTrigDelay(int value)
Sets the trigger delay *
**************************************************************************
|
void |
setTrip(boolean trip) |
void |
setVoltage(double value)
Sets the voltage.
|
void |
setVoltageLimit(double maxima)
Sets the voltage limit.
|
void |
setVoltageRange(double value)
Sets the voltage range.
|
void |
softReset() |
void |
writeCommand(String command)
Writes a command with SCPI error checking.
|
void |
writeKthly(String instr)
Writes a command.
|
void |
zeroCorrectCurrent()
zero correct the current.
|
void |
zeroCorrectVoltage()
zero correct the voltage.
|
checkError, checkIdentification, clearStatus, enableOperationComplete, getError, getEventStatus, getEventStatusEnable, getIdentification, getOperationComplete, getServiceRequestEnable, getStatusByte, makeChannelList, makeChannelList, readDoubleArray, readFloat, readFloatArray, readIntegerArray, readString, readStringArray, runSelfTest, setEventStatusEnable, setServiceRequestEnable, testIdentification, waitCompletionclose, closeSilent, flush, getTimeout, isOpen, makeDataCharacteristics, open, 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 void open(String devname) throws org.lsst.ccs.drivers.commons.DriverException
devname - **************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionpublic void open()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public void open(String devname, int port) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void openftdi(String serialname, int port) throws org.lsst.ccs.drivers.commons.DriverException
serialname - port - org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public String printdevid() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void reset()
throws org.lsst.ccs.drivers.commons.DriverException
reset in class org.lsst.ccs.drivers.scpi.Scpiorg.lsst.ccs.drivers.commons.DriverExceptionpublic void softReset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void clearStat()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setOutput(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean getOutput()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isTrip()
public void setTrip(boolean trip)
public boolean isAbort()
public void setAbort(boolean abort)
public void setRate(double value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setArmCount(int value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTrigCount(int value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTrigDelay(int value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setBuffSize(int value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void clrBuff()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getChannel()
public void setChannel(int channel)
public void setVoltageRange(double value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltage(double value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void rampVolts_sweep(double duration,
double value,
int nsteps)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void rampVolts(double duration,
double value,
int nsteps)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void rampVolts(double duration,
double value)
throws org.lsst.ccs.drivers.commons.DriverException
duration - value - org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public double getVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public void zeroCorrectVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrentRange(double value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrent(double value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void zeroCorrectCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltageLimit(double maxima)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltageLimit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrentLimit(double maxima)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrentLimit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setDisplay(boolean dstate)
throws org.lsst.ccs.drivers.commons.DriverException
dstate - org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public void accumBuffer(int nreads,
double nplc,
boolean wait)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public double[][] readBuffer()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic static double getMINBIAS()
public static double getMAXBIAS()
public void setOKTOTALK(boolean OKTOTALK)
public boolean isOKTOTALK()
public boolean isDATAREADY()
public String isDo_avg()
public void setDo_avg(boolean do_avg_req)
public int getnAvg()
public void setnAvg(int nAvg)
public double[][] readDoublePairArray(String command) throws org.lsst.ccs.drivers.commons.DriverException
DriverTimeoutException - *
*************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionpublic void writeKthly(String instr) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void writeCommand(String command) throws org.lsst.ccs.drivers.commons.DriverException
writeCommand in class org.lsst.ccs.drivers.scpi.Scpicommand - The command to write, excluding terminatororg.lsst.ccs.drivers.commons.DriverExceptionpublic String readStringKthly(String instr) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readDouble(String command) throws org.lsst.ccs.drivers.commons.DriverException
readDouble in class org.lsst.ccs.drivers.scpi.Scpicommand - The command to write, excluding terminatororg.lsst.ccs.drivers.commons.DriverExceptionDriverTimeoutExceptionpublic int readInteger(String command) throws org.lsst.ccs.drivers.commons.DriverException
readInteger in class org.lsst.ccs.drivers.scpi.Scpicommand - The command to write, excluding terminatororg.lsst.ccs.drivers.commons.DriverExceptionDriverTimeoutExceptionCopyright © 2022 LSST. All rights reserved.