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 |
fcslog| 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
|
double |
readVoltage(int inputNB)
Read the voltage at the ADC input inputNB on the ADC and returns the value in Volt
|
void |
setTransmissionType(String transmission_type) |
displayErrorHistory, displayErrorRegister, getNodeID, getSerialNB, initModule, isInitalized, isNodeIdBootedAndOK, readErrorHistory, readErrorRegister, readNumberOfErrors, readSDO, toString, writeSDOalias, change, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, injectResources, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, 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, ShortResponseToSDORequestException
inputNB - SDORequestExceptionHardwareNotDetectedExceptionShortResponseToSDORequestExceptionpublic double readVoltage(int inputNB)
throws SDORequestException,
HardwareNotDetectedException,
ShortResponseToSDORequestException
inputNB - : integer from 1 to 8SDORequestExceptionHardwareNotDetectedExceptionShortResponseToSDORequestExceptionpublic 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 © 2014 LSST. All rights reserved.