public class CanCBXAI814 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 int |
cobid1 |
protected int |
cobid2 |
int[] |
inputs |
protected int |
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, errorHistory, errorRegister, inError, initialized, name, nodeID, serialNB, subs, tcpProxyalertSeparater| Constructor and Description |
|---|
CanCBXAI814(int nodeID,
String serialNB,
int transmissionType)
Build a CanOpenADC with a CANopen node ID, a serial number and a transmission type.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getInputs() |
void |
initializeAndCheckHardware()
This methods has to be overridden if there is some initialization to do
for the device.
|
int |
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
|
String |
toString() |
void |
updateFromPDO(org.lsst.ccs.drivers.canopenjni.PDOData pdo)
process PDOData to extract the values this device has sent.
|
protected void |
updateWithPDO(int cob_id,
long pdoVal) |
protected String |
writeTransmissionTypeToDevice()
This methods writes the transmission type given by the configuration to
the device.
|
configAsHeartbeatConsumer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayErrorHistory, displayErrorRegister, doInitializePDOs, getAlertService, getErrorHistory, getErrorRegister, getName, getNodeID, getSerialNB, getSubsystem, getTcpProxy, isBooted, isInError, isInitialized, onEmergencyMessage, printSerialNumber, publishData, readErrorHistory, readErrorRegister, readNumberOfErrors, readSDO, resetError, saveParameters, setBooted, writeSDOclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, doInitializePDOs, getName, getNodeID, getSerialNB, initializePDOs, isBooted, isInitialized, printState, publishData, raiseAlarmIfMissing, setBootedonEmergencyMessage, onFault, onFaultResetclearAlarm, getAlertService, getSubsystem, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarningpublic static final double adcVoltsPerBit
public static final double waterFreezeTemp
@ConfigurationParameter protected int transmissionType
public int[] inputs
protected int cobid1
protected int cobid2
public CanCBXAI814(int nodeID,
String serialNB,
int transmissionType)
nodeID - serialNB - transmissionType - public int[] getInputs()
@Command public void initializeAndCheckHardware()
CanOpenDeviceinitializeAndCheckHardware in interface PieceOfHardwareinitializeAndCheckHardware in class CanOpenDevice@Command public int readAnalogInput(int inputNB)
readAnalogInput in interface ADCInterfaceinputNB - SDORequestExceptionHardwareNotDetectedExceptionpublic double readVoltage(int inputNB)
readVoltage in interface ADCInterfaceinputNB - : integer from 1 to 8SDORequestExceptionHardwareNotDetectedException@Command protected String writeTransmissionTypeToDevice()
FcsHardwareExceptionprotected void updateWithPDO(int cob_id,
long pdoVal)
@Command(type=QUERY,
description="process PDOData to extract the values.")
public void updateFromPDO(org.lsst.ccs.drivers.canopenjni.PDOData pdo)
updateFromPDO in interface PieceOfHardwareupdateFromPDO in class CanOpenDevicepdo - public String toString()
toString in class CanOpenDeviceCopyright © 2018 LSST. All rights reserved.