public class Model1696
extends org.lsst.ccs.drivers.ascii.Ascii
implements org.lsst.ccs.drivers.commons.PowerSupplyDriver
| Modifier and Type | Class and Description |
|---|---|
static class |
Model1696.Panel
Inner class to hold front panel data.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BAUDRATE |
| Constructor and Description |
|---|
Model1696()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getCurrent(int chan)
Gets the set current for a channel.
|
boolean |
getOutput(int chan)
Gets the output state of a channel.
|
Model1696.Panel |
getPanel(int chan)
Gets the front panel indicators.
|
double |
getVoltage(int chan)
Gets the set voltage for a channel.
|
double |
getVoltageLimit(int chan)
Gets the voltage limit for a channel.
|
boolean |
isPanelLocked(int chan)
Gets the state of the front panel lock.
|
void |
lockPanel(boolean lock,
int chan)
Locks or unlocks the front panel.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident)
Opens a connection.
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int baudRate,
int commParm)
Opens a connection.
|
void |
open(int connType,
String ident)
Deprecated.
|
double |
readCurrent(int chan)
Reads the current for a channel.
|
double |
readVoltage(int chan)
Reads the voltage for a channel.
|
void |
setCurrent(double value,
int chan)
Sets the current for a channel.
|
void |
setOffDelay(double time,
int chan)
Sets the power-off delay for a channel.
|
void |
setOnDelay(double time,
int chan)
Sets the power-on delay for a channel.
|
void |
setOutput(boolean on,
int chan)
Turns output on or off for a channel.
|
void |
setVoltage(double value,
int chan)
Sets the voltage for a channel.
|
void |
setVoltageLimit(double value,
int chan)
Sets the voltage limit for a channel.
|
close, closeSilent, flush, makeDataCharacteristics, open, open, open, read, read, readBytes, readBytes, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic static final int DEFAULT_BAUDRATE
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 ratecommParm - The communications parametersorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident)
throws org.lsst.ccs.drivers.commons.DriverException
connType - The enumerated connection type: FTDI or SERIALident - The USB ID (FTDI) or port name (SERIAL)org.lsst.ccs.drivers.commons.DriverException@Deprecated public void open(int connType, String ident) throws org.lsst.ccs.drivers.commons.DriverException
connType - The connection type: FTDI or SERIALident - The USB ID (FTDI) or port name (SERIAL)org.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.PowerSupplyDriveron - Turn on if true, off if falsechan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean getOutput(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
getOutput in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setOnDelay(double time,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
setOnDelay in interface org.lsst.ccs.drivers.commons.PowerSupplyDrivertime - The delay (sec)chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setOffDelay(double time,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
setOffDelay in interface org.lsst.ccs.drivers.commons.PowerSupplyDrivertime - The delay (sec)chan - The channel numberorg.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.PowerSupplyDrivervalue - The value to setchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
getVoltage in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
readVoltage in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverchan - The channel numberorg.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.PowerSupplyDrivervalue - The value to setchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getCurrent(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
getCurrent in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readCurrent(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
readCurrent in interface org.lsst.ccs.drivers.commons.PowerSupplyDriverchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltageLimit(double value,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
value - The value to setchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltageLimit(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void lockPanel(boolean lock,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
lock - True to lock the panel; false to unlock itchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isPanelLocked(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic Model1696.Panel getPanel(int chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2016 LSST. All rights reserved.