public class CanOpenDIO extends CompactIOModule implements PieceOfHardware
hexaValue| Constructor and Description |
|---|
CanOpenDIO() |
CanOpenDIO(String nodeID,
String serial) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkMask()
This methods checks if the mask of the device is the good one.
|
String |
getNodeID() |
String |
getSerialNB() |
String |
initializeHardware()
This methods write some configuration data on the hardware CPU.
|
void |
initModule() |
boolean |
isInitalized() |
boolean |
isNodeIdBootedAndOK() |
String |
readNewHexaValue()
returns the value in hexa of all the sensors connected on the inputs channels of
the device.
|
int |
readNewValue()
This method reads the current value in decimal measured by the hardware
or compute a random value for the simulated sensor, and returns this
current value.
|
void |
setNodeID(String nodeID) |
void |
setSerialNB(String serialNB) |
String |
toString() |
String |
writeDigitalOutput(int outputNB,
int value)
Write a value to the output of the DAC
|
String |
writeMask()
This methods initialize the CAN-CBX-DIO8 with the mask (value 3) to configure the
2 first channels of the device to be output channel.
|
getHexaValue, getValue, updateValuealias, change, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, injectResources, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamepublic void initModule()
initModule in class CompactIOModulepublic String getSerialNB()
getSerialNB in interface PieceOfHardwarepublic String getNodeID()
getNodeID in interface PieceOfHardwarepublic void setSerialNB(String serialNB)
serialNB - the serialNB to setpublic void setNodeID(String nodeID)
nodeID - the nodeID to setpublic boolean isInitalized()
isInitalized in interface PieceOfHardwarepublic boolean isNodeIdBootedAndOK()
isNodeIdBootedAndOK in interface PieceOfHardwarepublic String writeDigitalOutput(int outputNB, int value) throws SDORequestException, HardwareNotDetectedException
outputNB - in 1..8value - given in decimal format
TODO chnage this : it's not so simple !SDORequestExceptionHardwareNotDetectedExceptionpublic String readNewHexaValue()
readNewHexaValue in class CompactIOModulepublic String writeMask() throws SDORequestException
SDORequestExceptionpublic boolean checkMask()
throws SDORequestException,
ShortResponseToSDORequestException
SDORequestExceptionShortResponseToSDORequestExceptionpublic int readNewValue()
SensorreadNewValue in interface Sensorpublic String initializeHardware() throws Exception
PieceOfHardwareinitializeHardware in interface PieceOfHardwareExceptionCopyright © 2014 LSST. All rights reserved.