public class E3631
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Class and Description |
|---|---|
static class |
E3631.onOff
Public constants
|
static class |
E3631.OutputName |
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| Constructor and Description |
|---|
E3631()
Constructor *
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
double |
getCurrent()
Measure current for currently selected output
|
double |
getCurrent(String outname)
Measure current for a channel
|
String |
getError()
Get the E36311 error status
|
String |
getID()
Get the E3631 ID
|
String |
getOutput()
Ask which output is currently selected
|
String |
getReply(String command)
getReply(String command)
Send a command, and wait for a reply.
|
double |
getVoltage()
getVoltage: Measure voltage for current output
|
double |
getVoltage(String outname)
getVoltage: Measure voltage for a channel
|
void |
init()
Initialize the instrument
|
void |
open(String serialname,
int port)
Opens a connection.
|
void |
outputOff(String outname)
outputOff: Turn an output off
|
void |
outputOn(String outname)
Turn an output on
|
String |
readE3631()
Reads a response.
|
String |
readE3631(String command)
Reads a response after writing a command.
|
void |
reset()
reset the E36311
|
void |
selectOutput(String outname)
Select one of the outputs for control
|
void |
sendCommand(String command)
sendCommand(String command)
Send a command, but do not wait for a reply other than to check
for the acknowledgment of that command
|
void |
setCurrent(String outname,
double amps)
Set current for a channel
|
void |
setFakeout(Boolean f)
Set to true if in simulation mode
|
void |
setTimeout(int timeout)
Sets the receive timeout.
|
void |
setVerbose(Boolean v)
Set verbosity to either true or false
|
void |
setVoltage(String outname,
double volts)
Set voltage for a channel
|
void |
writeE3631(String command)
Writes a command.
|
closeSilent, flush, getConnTimeout, getTimeout, isDropEcho, isOpen, makeDataCharacteristics, open, open, open, openFtdi, openFtdi, openFtdi, openNet, openNet, openSerial, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setConnTimeout, setConnTimeout, setDefaultBaud, setDefaultParm, setDefaultPort, setMultidrop, setOptions, setResponseTerm, setTerminator, setTimeout, write, writeBytes, writeBytespublic E3631()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String serialname, int port) throws org.lsst.ccs.drivers.commons.DriverException
device - The device name of the serial portserialname - port - org.lsst.ccs.drivers.commons.DriverExceptionpublic void init()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
close in class org.lsst.ccs.drivers.ascii.Asciiorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setFakeout(Boolean f) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVerbose(Boolean v) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void selectOutput(String outname) throws org.lsst.ccs.drivers.commons.DriverException
outname - org.lsst.ccs.drivers.commons.DriverExceptionpublic String getOutput() throws org.lsst.ccs.drivers.commons.DriverException
outname - org.lsst.ccs.drivers.commons.DriverExceptionpublic void outputOn(String outname) throws org.lsst.ccs.drivers.commons.DriverException
outname - org.lsst.ccs.drivers.commons.DriverExceptionpublic void outputOff(String outname) throws org.lsst.ccs.drivers.commons.DriverException
outname - org.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltage(String outname) throws org.lsst.ccs.drivers.commons.DriverException
outname - the name of the output to measure: P5V, P25V, or N25Vorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrent(String outname) throws org.lsst.ccs.drivers.commons.DriverException
outname - org.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltage(String outname, double volts) throws org.lsst.ccs.drivers.commons.DriverException
outname - volts - org.lsst.ccs.drivers.commons.DriverExceptionpublic void setCurrent(String outname, double amps) throws org.lsst.ccs.drivers.commons.DriverException
outname - amps - org.lsst.ccs.drivers.commons.DriverExceptionpublic String getID() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getError() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void reset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void sendCommand(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - org.lsst.ccs.drivers.commons.DriverExceptionpublic String getReply(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTimeout(int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
setTimeout in class org.lsst.ccs.drivers.ascii.Asciitimeout - org.lsst.ccs.drivers.commons.DriverExceptionpublic void writeE3631(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - org.lsst.ccs.drivers.commons.DriverExceptionpublic String readE3631() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String readE3631(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2023 LSST. All rights reserved.