public class N6487
extends org.lsst.ccs.drivers.scpi.Scpi
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_BAUD |
static int |
MAX_BUFF_SIZE |
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)
Starts the accumulation of current readings in the buffer.
|
void |
accumBuffer(int nreads,
double nplc,
boolean wait)
Deprecated.
|
void |
clearStat()
Clears status
|
void |
clrBuff()
Clears the buffer
|
boolean |
current_OK()
Deprecated.
|
double |
getCurrentLimit()
Gets the set current limit.
|
int |
getLineFreq()
Gets the line frequency
|
static double |
getMaxBias()
Gets the maximum allowed bias value
|
static double |
getMAXBIAS()
Deprecated.
|
int |
getMaxBufferSize()
Gets the maximum buffer size
|
static double |
getMinBias()
Gets the minimum allowed bias value
|
static double |
getMINBIAS()
Deprecated.
|
boolean |
getOutput()
Gets the output state.
|
double |
getVoltage()
Gets the set voltage.
|
boolean |
isAbort()
Gets the (unused) abort state.
|
boolean |
isACCUM_IN_PROGRESS()
Deprecated.
|
boolean |
isAccumInProgress()
Gets whether data accumulation is in progress
|
boolean |
isCurrentOk()
Checks whether current is within bounds
|
boolean |
isDataReady()
Gets whether data is ready
|
boolean |
isDATAREADY()
Deprecated.
|
boolean |
isOkToTalk()
Gets the blocking flag
|
boolean |
isOKTOTALK()
Deprecated.
|
boolean |
isTrip()
Gets the (unused) 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()
Returns a formatted device identification string.
|
void |
rampVolts_sweep(double duration,
double value,
int nsteps)
Deprecated.
|
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.
|
void |
rampVoltsSweep(double duration,
double value,
int nsteps)
Ramps the voltage to a desired level over a given duration.
|
double[][] |
readBuffer()
Reads the accumulated buffer data.
|
double |
readCurrent()
Reads the current.
|
double[][] |
readCurrents(int nreads,
double nplc)
Makes a set of current readings.
|
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 (unused) 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 |
setCurrentLimit(double maxima)
Sets the current limit.
|
void |
setCurrentRange(double value)
Sets the current range.
|
void |
setDebug(boolean setOn)
Sets the debug state
|
void |
setDisplay(boolean dstate)
Sets the display on(true)/off(false)
|
void |
setOKTOTALK(boolean okToTalk)
Deprecated.
|
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 (unused) trip state.
|
void |
setVoltage(double value)
Sets the voltage.
|
void |
setVoltageRange(double value)
Sets the voltage range.
|
void |
softReset()
Soft reset
|
void |
waitAccum(double timeout)
Waits for the buffer accumulation to complete.
|
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, writeCommandclose, closeSilent, flush, makeDataCharacteristics, open, open, open, openFtdi, openFtdi, openNet, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setResponseTerm, setTerminator, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic static final int MAX_BUFF_SIZE
public static final int DEFAULT_BAUD
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 (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 setDebug(boolean setOn)
setOn - True to set debug state, false to clear itpublic 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 setDisplay(boolean dstate)
throws org.lsst.ccs.drivers.commons.DriverException
dstate - org.lsst.ccs.drivers.commons.DriverExceptionpublic 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 setCurrentRange(double value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The current rangeorg.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 double[][] readCurrents(int nreads,
double nplc)
throws org.lsst.ccs.drivers.commons.DriverException
nreads - The number of readingsnplc - The sample rateorg.lsst.ccs.drivers.commons.DriverExceptionpublic void accumBuffer(int nreads,
double nplc)
throws org.lsst.ccs.drivers.commons.DriverException
nreads - The number of readingsnplc - The sample rateorg.lsst.ccs.drivers.commons.DriverExceptionpublic void waitAccum(double timeout)
throws org.lsst.ccs.drivers.commons.DriverException
timeout - The timeout (secs)org.lsst.ccs.drivers.commons.DriverExceptionpublic double[][] readBuffer()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getMaxBufferSize()
public int getLineFreq()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isOkToTalk()
public boolean isDataReady()
public boolean isAccumInProgress()
public static double getMinBias()
public static double getMaxBias()
public 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 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 rampVoltsSweep(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 isCurrentOk()
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 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 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.DriverException@Deprecated public void accumBuffer(int nreads, double nplc, boolean wait) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Deprecated public boolean isACCUM_IN_PROGRESS()
@Deprecated public boolean isDATAREADY()
@Deprecated public boolean isOKTOTALK()
@Deprecated public void setOKTOTALK(boolean okToTalk)
@Deprecated public boolean current_OK() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Deprecated public void rampVolts_sweep(double duration, double value, int nsteps) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Deprecated public static double getMINBIAS()
@Deprecated public static double getMAXBIAS()
Copyright © 2017 LSST. All rights reserved.