public class CompactIOModule extends CanOpenDevice
| Modifier and Type | Field and Description |
|---|---|
String |
hexaValue |
booted, bridge, initialized, nodeID, serialNB, tcpProxy| Constructor and Description |
|---|
CompactIOModule(String aName,
int aTickMillis,
String nodeID,
String serialNB) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkMask()
This methods checks if the mask of the device is the good one.
|
String |
getHexaValue() |
int |
getValue() |
void |
initModule() |
String |
readNewHexaValue()
returns the value in hexa of all the sensors connected on the inputs
channels of the device.
|
void |
updateValue() |
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.
|
displayErrorHistory, displayErrorRegister, getErrorHistoryNames, getNodeID, getSerialNB, initializeAndCheckHardware, 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 String hexaValue
public void initModule()
initModule in class CanOpenDevicepublic String readNewHexaValue() throws FcsHardwareException
FcsHardwareExceptionpublic String getHexaValue()
public int getValue()
public void updateValue()
throws FcsHardwareException
FcsHardwareExceptionpublic String writeDigitalOutput(int outputNB, int value) throws SDORequestException, HardwareNotDetectedException, FcsHardwareException
outputNB - in 1..8value - given in decimal format TODO chnage this : it's not so
simple !SDORequestExceptionHardwareNotDetectedExceptionFcsHardwareExceptionpublic String writeMask() throws SDORequestException, FcsHardwareException
SDORequestExceptionFcsHardwareExceptionpublic boolean checkMask()
throws SDORequestException,
ShortResponseToSDORequestException,
FcsHardwareException
SDORequestExceptionShortResponseToSDORequestExceptionFcsHardwareExceptionCopyright © 2016 LSST. All rights reserved.