
public class CanOpenStrainGauge extends CanOpenDevice
booted, errorHistory, errorRegister, inError, initialized, name, nodeID, serialNB, tcpProxyalertSeparater| Constructor and Description |
|---|
CanOpenStrainGauge(int nodeID,
String serialNB)
build a Seneca_ZC_SG
|
| Modifier and Type | Method and Description |
|---|---|
void |
configureRegister1()
configure register1 configuration of register1 is done with index 0x2107
The object 0x2107 is used to setup the measure and the digital
input/output.
|
void |
configureRegister2()
configure register2 configuration of register2 is done with index 0x2108
The object 0x2108 is used to setup the system measure.
|
int |
readAdcValue()
Read the ADC value.
|
short |
readStrain()
Read the strain value (or weight) : Integer net value (signed): integer
approximation of the floating point value.
|
int |
readStrain32bitFloat()
read 32 bit float input value
|
double |
readTemperature()
read internal temperature in degrees Celsius.
|
configAsHeartbeatConsumer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayErrorHistory, displayErrorRegister, getErrorHistory, getErrorRegister, getName, getNodeID, getSerialNB, 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, checkInitialized, createStatusDataPublishedByHardware, printState, raiseAlarmIfMissingonFault, onFaultResetraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningpublic CanOpenStrainGauge(int nodeID,
String serialNB)
nodeID - serialNB - public void configureRegister1()
public void configureRegister2()
@Command(type=QUERY, description="read internal temperature in degrees Celsius.") public double readTemperature()
@Command(type=QUERY, description="Read the strain value (or weight) : Integer net value (signed).") public short readStrain()
@Command(type=QUERY, description="Read the ADC value.") public int readAdcValue()
@Command(type=QUERY, description="Read 32 bit float input value.") public int readStrain32bitFloat()
Copyright © 2017 LSST. All rights reserved.