
public class CompactIO extends CanOpenDevice
| Modifier and Type | Field and Description |
|---|---|
int |
value |
booted, errorHistory, errorRegister, inError, initialized, name, nodeID, serialNB, subs, tcpProxyalertSeparator| 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 |
getValue() |
int |
readNewValue()
returns the value of all the sensors connected on the inputs
channels of the device.
|
void |
updateValue() |
void |
writeDigitalOutput(int outputNB,
int value)
Write a value to the output of the DAC
|
void |
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, displayError, displayErrorHistory, displayErrorRegister, doInitializePDOs, getAlertService, getErrorHistory, getErrorRegister, getName, getNodeID, getSerialNB, getSubsystem, getTcpProxy, initializeAndCheckHardware, isBooted, isInError, isInitialized, onEmergencyMessage, printSerialNumber, publishData, readErrorHistory, readErrorRegister, readNumberOfErrors, readSDO, resetError, saveParameters, setBooted, toString, updateFromPDO, writeSDO, writeTransmissionTypeToDeviceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, initializePDOs, printState, raiseAlarmIfMissingonFault, onFaultResetclearAlarm, getAlertSeparator, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarningpublic CompactIO(int nodeID,
String serialNB)
nodeID - serialNB - public int readNewValue()
FcsHardwareExceptionpublic int getValue()
public void updateValue()
FcsHardwareExceptionpublic void writeDigitalOutput(int outputNB,
int value)
outputNB - in 1..8value - SDORequestExceptionHardwareNotDetectedExceptionpublic void writeMask()
SDORequestExceptionpublic boolean checkMask()
SDORequestExceptionCopyright © 2018 LSST. All rights reserved.