
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 |
initializeAndCheckHardware()
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, getComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, 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, 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 initializeAndCheckHardware() throws FcsHardwareException
CanOpenDeviceinitializeAndCheckHardware in interface PieceOfHardwareinitializeAndCheckHardware in class CanOpenDeviceFcsHardwareExceptionCopyright © 2015 LSST. All rights reserved.