public class CanOpenADC extends CanOpenDevice
| Modifier and Type | Field and Description |
|---|---|
static double |
adcVoltsPerBit
One bit read on the input of the ADC represents 0.3125 mV
|
static double |
waterFreezeTemp |
| Constructor and Description |
|---|
CanOpenADC(String aName,
int aTickMillis,
String nodeID,
String serialNB,
String transmissionType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getTransmissionType() |
String |
initializeHardware()
This methods has to be overridden if there is some initialization to do for the device.
|
String |
readAnalogInput(int inputNB)
Read the analog input whom number is given as a parameter
|
void |
setTransmissionType(String transmission_type) |
displayErrorHistory, displayErrorRegister, getNodeID, getSerialNB, initModule, isInitalized, isNodeIdBootedAndOK, readErrorHistory, readErrorRegister, readNumberOfErrors, readSDO, toString, writeSDOalias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamepublic static final double adcVoltsPerBit
public static final double waterFreezeTemp
public String getTransmissionType()
public void setTransmissionType(String transmission_type)
public String readAnalogInput(int inputNB) throws SDORequestException, HardwareNotDetectedException
input - : integer from 1 to 8SDORequestErrorSDORequestExceptionHardwareNotDetectedExceptionpublic String initializeHardware() throws SDORequestException, org.lsst.ccs.bus.ErrorInCommandExecutionException, org.lsst.ccs.bus.BadCommandException
CanOpenDeviceinitializeHardware in interface PieceOfHardwareinitializeHardware in class CanOpenDeviceSDORequestExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandExceptionCopyright © 2013 LSST. All Rights Reserved.