public class CanOpenADC extends CanOpenDevice implements ADCInterface
| Modifier and Type | Field and Description |
|---|---|
static double |
adcVoltsPerBit
One bit read on the input of the ADC represents 0.3125 mV
|
protected String |
transmissionType
The transmission types for the analogue inputs are described in the
following: acyclic, synchronous: The transmission is initiated if a
SYNC-message has been received (PDO- transmission type 0) and data has
changed.
|
static double |
waterFreezeTemp |
booted, bridge, initialized, nodeID, serialNB, tcpProxy| 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, writeSDOgetComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, 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, wait, wait, waitgetNamechange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getFullPath, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic static final double adcVoltsPerBit
public static final double waterFreezeTemp
protected String transmissionType
public String getTransmissionType()
public void setTransmissionType(String transmission_type)
public String readAnalogInput(int inputNB) throws SDORequestException, HardwareNotDetectedException, ShortResponseToSDORequestException, FcsHardwareException
readAnalogInput in interface ADCInterfaceinputNB - SDORequestExceptionHardwareNotDetectedExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionpublic double readVoltage(int inputNB)
throws SDORequestException,
HardwareNotDetectedException,
ShortResponseToSDORequestException,
FcsHardwareException
readVoltage in interface ADCInterfaceinputNB - : integer from 1 to 8SDORequestExceptionHardwareNotDetectedExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionpublic String initializeAndCheckHardware() throws FcsHardwareException
CanOpenDeviceinitializeAndCheckHardware in interface PieceOfHardwareinitializeAndCheckHardware in class CanOpenDeviceFcsHardwareExceptionCopyright © 2016 LSST. All rights reserved.