
public class CompactIO extends CanOpenDevice
| Modifier and Type | Field and Description |
|---|---|
int |
hexaValue |
booted, errorHistory, errorRegister, inError, initialized, name, nodeID, s, serialNB, tcpProxyalertSeparater| Constructor and Description |
|---|
CompactIO(int nodeID,
String serialNB)
Build a new CompactIOModule
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkMask()
This methods checks if the mask of the device is the good one.
|
int |
getHexaValue() |
int |
getValue() |
int |
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.
|
configAsHeartbeatConsumer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayErrorHistory, displayErrorRegister, getAlertService, getErrorHistory, getErrorRegister, getName, getNodeID, getSerialNB, getSubsystem, getTcpProxy, initializeAndCheckHardware, isBooted, isInError, isInitialized, onEmergencyMessage, publishData, readErrorHistory, readErrorRegister, readNumberOfErrors, readSDO, readStringSerialNumber, resetError, saveParameters, setBooted, toString, writeSDOclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, printState, raiseAlarmIfMissingonFault, onFaultResetclearAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningpublic CompactIO(int nodeID,
String serialNB)
nodeID - serialNB - public int readNewHexaValue()
FcsHardwareExceptionpublic int getHexaValue()
public int getValue()
public void updateValue()
FcsHardwareExceptionpublic String writeDigitalOutput(int outputNB, int value)
outputNB - in 1..8value - given in decimal format TODO chnage this : it's not so
simple !SDORequestExceptionHardwareNotDetectedExceptionpublic String writeMask()
SDORequestExceptionpublic boolean checkMask()
SDORequestExceptionShortResponseToSDORequestExceptionCopyright © 2017 LSST. All rights reserved.