
public class BK1696Device extends PowerDevice
PowerDevice.PowerState| Constructor and Description |
|---|
BK1696Device() |
BK1696Device(String connType,
String devcId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
protected void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
boolean |
getOutput(int chan)
Gets the output state.
|
protected void |
initialize()
Performs full initialization.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads all channels as a group.
|
double |
readCurrent(int chan)
Reads the current.
|
double |
readVoltage(int chan)
Reads the voltage.
|
void |
setCurrent(int chan,
double value)
Sets the current.
|
void |
setOutput(int chan,
boolean value)
Sets the output state.
|
void |
setVoltage(int chan,
double value)
Sets the voltage.
|
enableOutput, setOnline, setPoweraddChannel, addConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOutputLines, testOnlinegetChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getCheckedValueFromConfiguration, getComponentByName, getName, getParent, getParentObject, getSubmittedChanges, getSubsystem, init, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, printConfigurableParameters, setBulkParameter, shutdownNow, start, submitChange, submitChanges, validateBulkChange@Deprecated public BK1696Device(String connType, String devcId)
connType - The connection type: ftdi or serialdevcId - The device ID: USB serial no. or serial device namepublic BK1696Device()
protected void configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Devicemon - The monitor objectprotected void initialize()
initialize in class org.lsst.ccs.subsystem.monitor.Deviceprotected void close()
close in class org.lsst.ccs.subsystem.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.subsystem.monitor.Devicename - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype stringException - if any errors found in the parameters.protected void readChannelGroup()
readChannelGroup in class org.lsst.ccs.subsystem.monitor.Deviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.subsystem.monitor.DevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.public void setOutput(int chan,
boolean value)
setOutput in class PowerDevicechan - The hardware channel (not used)value - The output state to set, true or falsepublic boolean getOutput(int chan)
getOutput in class PowerDevicechan - The hardware channel (not used)public void setVoltage(int chan,
double value)
setVoltage in class PowerDevicechan - The hardware channel (not used)value - The voltage to setpublic double readVoltage(int chan)
readVoltage in class PowerDevicechan - The hardware channel (not used)public void setCurrent(int chan,
double value)
setCurrent in class PowerDevicechan - The hardware channel (not used)value - The current to setpublic double readCurrent(int chan)
readCurrent in class PowerDevicechan - The hardware channel (not used)Copyright © 2016 LSST. All rights reserved.