public class N6487
extends org.lsst.ccs.drivers.scpi.Scpi
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 |
|---|
N6487()
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
|
boolean |
current_OK() |
double |
getCurrent()
Gets the set current.
|
double |
getCurrentLimit()
Gets the set current limit.
|
static double |
getMAXBIAS()
Gets the maximum allowed bias value
|
static double |
getMINBIAS()
Gets the minimum allowed bias value
|
boolean |
getOutput()
Gets the output state.
|
double |
getVoltage()
Gets the set voltage.
|
double |
getVoltageLimit()
Gets the set voltage limit.
|
boolean |
isAbort()
Gets the abort state.
|
boolean |
isACCUM_IN_PROGRESS()
Gets whether data accumulation is in progress
|
boolean |
isDATAREADY()
Gets whether data is ready
|
boolean |
isOKTOTALK()
Gets the blocking flag
|
boolean |
isTrip()
Gets the trip state.
|
void |
open()
Opens a connection.using all default parameters
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int baudRate,
int commParm)
Opens a connection.
|
void |
open(String devname)
Opens a connection.
|
void |
open(String devname,
int baud)
Opens a connection.
|
void |
openftdi(String serial,
int baud)
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 using a
default of 10 steps
|
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[][] |
readDoublePairArray(String command)
Reads a double pair array 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)
Sets the abort state.
|
void |
setArmCount(int value)
Sets the ARM count
|
void |
setBuffSize(int value)
Sets the buffer size (#readings up to 3000 for the 6487)
|
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 |
setOKTOTALK(boolean OKTOTALK)
Sets the blocking flag
|
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)
Sets the trip state.
|
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()
Soft reset
|
void |
writeKthly(String instr)
Writes a command.
|
void |
zeroCorrectCurrent()
Zero corrects the current.
|
void |
zeroCorrectVoltage()
Zero correct the voltage.
|
checkIdentification, clearStatus, enableOperationComplete, getError, getEventStatus, getEventStatusEnable, getIdentification, getOperationComplete, getServiceRequestEnable, getStatusByte, makeChannelList, makeChannelList, readDouble, readDoubleArray, readFloat, readFloatArray, readInteger, readIntegerArray, readString, readStringArray, runSelfTest, setEventStatusEnable, setServiceRequestEnable, testIdentification, waitCompletion, writeCommandpublic 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 (9600)commParm - The communications parametersorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String devname) throws org.lsst.ccs.drivers.commons.DriverException
devname - The serial device nameorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String devname, int baud) throws org.lsst.ccs.drivers.commons.DriverException
devname - The serial device namebaud - The baud rateorg.lsst.ccs.drivers.commons.DriverExceptionpublic void openftdi(String serial, int baud) throws org.lsst.ccs.drivers.commons.DriverException
serial - The FTDI serial numberbaud - The baud rateorg.lsst.ccs.drivers.commons.DriverExceptionpublic 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
on - Whether to turn onorg.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)
trip - Whether trip is truepublic boolean isAbort()
public void setAbort(boolean abort)
abort - Whether abort is truepublic void setRate(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The integration rateorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setArmCount(int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The ARM countorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setTrigCount(int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The trigger countorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setTrigDelay(int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The trigger delayorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setBuffSize(int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The buffer sizeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void clrBuff()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltageRange(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The voltage rangeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltage(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The voltage to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic void rampVolts_sweep(double duration,
double value,
int nsteps)
throws org.lsst.ccs.drivers.commons.DriverException
duration - The time durationvalue - The voltage valuensteps - The number of stepsorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean current_OK()
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
duration - The time durationvalue - The voltage valuensteps - The number of stepsorg.lsst.ccs.drivers.commons.DriverExceptionpublic void rampVolts(double duration,
double value)
throws org.lsst.ccs.drivers.commons.DriverException
duration - The time durationvalue - The voltage levelorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic 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
value - The current rangeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrent(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The current valueorg.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
maxima - The voltage limitorg.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
maxima - The current limitorg.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.DriverExceptionpublic void accumBuffer(int nreads,
double nplc,
boolean wait)
throws org.lsst.ccs.drivers.commons.DriverException
nreads - The number of readingsnplc - The sample ratewait - Whether to wait for resultorg.lsst.ccs.drivers.commons.DriverExceptionpublic 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)
OKTOTALK - Blocking flagpublic boolean isOKTOTALK()
public boolean isDATAREADY()
public boolean isACCUM_IN_PROGRESS()
public double[][] readDoublePairArray(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command to write, excluding terminatororg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeKthly(String instr) throws org.lsst.ccs.drivers.commons.DriverException
instr - The command to write, excluding terminatororg.lsst.ccs.drivers.commons.DriverExceptionpublic String readStringKthly(String instr) throws org.lsst.ccs.drivers.commons.DriverException
instr - The command to write, excluding terminatororg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2017 LSST. All rights reserved.