public class SimuADCDevice extends ADCModule implements PieceOfHardware
| Constructor and Description |
|---|
SimuADCDevice(String name,
int tickMillis,
String nodeID,
String serialNB) |
| Modifier and Type | Method and Description |
|---|---|
String |
getNodeID() |
String |
getSerialNB() |
String |
initializeAndCheckHardware()
This methods write some configuration data on the hardware CPU.
|
boolean |
isBooted() |
boolean |
isInitialized() |
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 |
setBooted(boolean aBoolean) |
getComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, initModule, listens, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamechange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getFullPath, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic String readAnalogInput(int inputNB) throws SDORequestException, HardwareNotDetectedException, ShortResponseToSDORequestException, FcsHardwareException
ADCInterfacereadAnalogInput in interface ADCInterfaceSDORequestExceptionHardwareNotDetectedExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionpublic double readVoltage(int inputNB)
throws SDORequestException,
HardwareNotDetectedException,
ShortResponseToSDORequestException,
FcsHardwareException
ADCInterfacereadVoltage in interface ADCInterfaceinputNB - : integer from 1 to 8SDORequestExceptionHardwareNotDetectedExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionpublic String getSerialNB()
getSerialNB in interface PieceOfHardwarepublic String getNodeID()
getNodeID in interface PieceOfHardwarepublic boolean isBooted()
isBooted in interface PieceOfHardwarepublic void setBooted(boolean aBoolean)
setBooted in interface PieceOfHardwarepublic boolean isInitialized()
isInitialized in interface PieceOfHardwarepublic String initializeAndCheckHardware() throws FcsHardwareException
PieceOfHardwareinitializeAndCheckHardware in interface PieceOfHardwareFcsHardwareExceptionCopyright © 2016 LSST. All rights reserved.