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, getErrorHistoryNames, getNodeID, getSerialNB, initModule, isBooted, isInitialized, readErrorHistory, readErrorRegister, readNumberOfErrors, readSDO, saveParameters, setBooted, toString, writeSDOalias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamechange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkpublic 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 FcsHardwareException
CanOpenDeviceinitializeHardware in interface PieceOfHardwareinitializeHardware in class CanOpenDeviceFcsHardwareExceptionCopyright © 2015 LSST. All rights reserved.