
public class KeysightB2981a
extends org.lsst.ccs.drivers.scpi.Scpi
implements org.lsst.ccs.drivers.commons.PowerSupplyDriver
| Modifier and Type | Class and Description |
|---|---|
static class |
KeysightB2981a.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.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 |
|---|
KeysightB2981a()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accumBuffer(int nreads,
double intvl)
Starts the accumulation of current readings in the buffer.
|
void |
accumBuffer(int nreads,
double nplc,
boolean wait)
Deprecated.
|
void |
accumBuffer(int nreads,
double intvl,
int n_extrig,
double pause)
Starts the accumulation of current readings in the buffer.
|
void |
clearStat()
Clears status
|
void |
clrBuff()
Clears the buffer
|
boolean |
current_OK()
Deprecated.
|
double |
getCurrent(int chan) |
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.
|
int |
getnAvg() |
int |
getNPauseAvg()
Returns the number of measurements averaged for each returned read during the pause btwn sets of buffered readings
|
int |
getNPauseReads()
Returns the number of reads to be performed during the pause btwn sets of buffered readings
|
boolean |
getOutput()
Gets the output state.
|
boolean |
getOutput(int chan) |
double |
getRate()
Gets the integration rate as the number of power line cycles
|
double |
getVoltage()
Gets the set voltage.
|
double |
getVoltage(int chan) |
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.
|
String |
isDo_avg() |
boolean |
isOkToTalk()
Gets the blocking flag
|
boolean |
isOKTOTALK()
Deprecated.
|
boolean |
isTrip()
Gets the (unused) trip state.
|
void |
open()
Deprecated.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int baudRate,
int commParm)
Opens a connection.
|
void |
open(String devname)
Deprecated.
|
void |
open(String devname,
int baud)
Deprecated.
|
void |
openftdi(String serial,
int baud)
Deprecated.
|
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 |
readCurrent(int chan) |
double[][] |
readCurrents(int nreads,
double intvl)
Makes a set of current readings.
|
double[] |
readPower()
Reads the voltage & current.
|
String |
readStringKthly(String instr)
Writes a command and reads the (string) result.
|
double |
readVoltage()
Reads the voltage.
|
double |
readVoltage(int chan) |
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 B2981a)
|
void |
setCurrent(double value,
int chan) |
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 |
setDo_avg(boolean do_avg_req) |
void |
setnAvg(int nAvg) |
void |
setOffDelay(double value,
int chan) |
void |
setOKTOTALK(boolean okToTalk)
Deprecated.
|
void |
setOnDelay(double value,
int chan) |
void |
setOutput(boolean on)
Turns output on or off.
|
void |
setOutput(boolean on,
int chan) |
void |
setPauseParms(double pause,
int requested_nPauseReads,
double nplc)
Sets the pause parameters needed for executing the averaging of readings during
pauses in the sets of buffered readings
|
void |
setRate(double value)
Sets the integration rate as the number of power line cycles
|
void |
setTrigCount(int value)
Sets the trigger count
|
void |
setTrigDelay(double value)
Sets the trigger delay
|
void |
setTrip(boolean trip)
Sets the (unused) trip state.
|
void |
setVoltage(double value)
Sets the voltage.
|
void |
setVoltage(double value,
int chan) |
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.
|
checkError, 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, getConnTimeout, getTimeout, 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 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 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 double getRate()
throws org.lsst.ccs.drivers.commons.DriverException
org.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(double 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[] readPower()
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 intvl)
throws org.lsst.ccs.drivers.commons.DriverException
nreads - The number of readingsintvl - The sample interval (in power line cycles)org.lsst.ccs.drivers.commons.DriverExceptionpublic void accumBuffer(int nreads,
double intvl)
throws org.lsst.ccs.drivers.commons.DriverException
nreads - The number of readingsintvl - The sample interval (in power line cycles)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPauseParms(double pause,
int requested_nPauseReads,
double nplc)
requested_nPauseReads - nplc - public int getNPauseReads()
public int getNPauseAvg()
public void waitAccum(double timeout)
throws org.lsst.ccs.drivers.commons.DriverException
timeout - The timeout (secs)org.lsst.ccs.drivers.commons.DriverExceptionpublic void accumBuffer(int nreads,
double intvl,
int n_extrig,
double pause)
throws org.lsst.ccs.drivers.commons.DriverException
nreads - The number of readingsintvl - The sample interval (in power line cycles)n_extrig - The number of extra triggerspause - The pause time for extra triggersorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[][] readBuffer()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getMaxBufferSize()
public String isDo_avg()
public void setDo_avg(boolean do_avg_req)
public int getnAvg()
public void setnAvg(int nAvg)
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.DriverExceptionpublic double readVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
readVoltage in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readCurrent(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
readCurrent in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverorg.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.PowerSupplyDriverorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
getVoltage in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverorg.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.PowerSupplyDriverorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrent(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
getCurrent in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverorg.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.PowerSupplyDriverorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean getOutput(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
getOutput in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setOnDelay(double value,
int chan)
setOnDelay in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverpublic void setOffDelay(double value,
int chan)
setOffDelay in interface org.lsst.ccs.drivers.commons.PowerSupplyDriver@Deprecated public void open(String devname) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Deprecated public void open() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Deprecated public void open(String devname, int baud) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Deprecated public void openftdi(String serial, int baud) throws org.lsst.ccs.drivers.commons.DriverException
org.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 © 2021 LSST. All rights reserved.