
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 |
errorHistory, errorRegister, inError, initialized, nodeID, serialNB, tcpProxy| Constructor and Description |
|---|
CanOpenADC(String nodeID,
String serialNB,
String transmissionType)
Build a CanOpenADC with a CANopen node ID, a serial number and a transmission type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
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
|
protected String |
writeTransmissionTypeToDevice()
This methods writes the transmission type given by the configuration to
the device.
|
configAsHeartbeatConsumer, configAsHeartbeatProducer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayErrorHistory, displayErrorRegister, getErrorHistory, getErrorRegister, getNodeID, getSerialNB, getTcpProxy, initModule, isBooted, isInError, isInitialized, processUpdate, publishData, readErrorHistory, readErrorHistoryNames, readErrorRegister, readNumberOfErrors, readSDO, resetError, saveParameters, toString, writeSDOgetNObserverThreads, getObservables, getTickMillis, init, listens, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckBooted, checkInitialized, createStatusDataPublishedByHardware, printStateraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarninggetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic static final double adcVoltsPerBit
public static final double waterFreezeTemp
@ConfigurationParameter protected String transmissionType
@Command public String readAnalogInput(int inputNB)
readAnalogInput in interface ADCInterfaceinputNB - SDORequestExceptionHardwareNotDetectedExceptionShortResponseToSDORequestExceptionpublic double readVoltage(int inputNB)
readVoltage in interface ADCInterfaceinputNB - : integer from 1 to 8SDORequestExceptionHardwareNotDetectedExceptionShortResponseToSDORequestException@Command public void initializeAndCheckHardware()
CanOpenDeviceinitializeAndCheckHardware in interface PieceOfHardwareinitializeAndCheckHardware in class CanOpenDevice@Command protected String writeTransmissionTypeToDevice()
FcsHardwareExceptionCopyright © 2017 LSST. All rights reserved.