public class CanOpenStrainGauge extends CanOpenDevice implements StrainGauge
| Modifier and Type | Field and Description |
|---|---|
protected short |
strain
Integer net value (signed): integer approximation of the floating point
value.
|
booted, dataProviderDictionaryService, errorHistory, errorRegister, inError, initialized, lastErrorCode, lastErrorName, name, nodeID, serialNB, subs, tcpProxyalertSeparator| Constructor and Description |
|---|
CanOpenStrainGauge() |
| 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.
|
build, configAsHeartbeatConsumer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayError, displayErrorHistory, displayErrorRegister, doInitializePDOs, getAlertService, getErrorHistory, getErrorHistoryNB, getErrorRegister, getLastErrorCode, getLastErrorName, getName, getNodeID, getSerialNB, getSubsystem, getTcpProxy, initializeAndCheckHardware, isBooted, isInError, isInitialized, onEmergencyMessage, printSerialNumber, publishData, readErrorRegister, readNumberOfErrors, readSDO, resetError, saveParameters, setBooted, toString, updateDeviceInfo, updateErrorHistory, updateFromPDO, writeSDO, writeTransmissionTypeToDeviceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, doInitializePDOs, getName, getNodeID, getSerialNB, initializeAndCheckHardware, initializePDOs, isBooted, isInitialized, printState, publishData, raiseAlarmIfMissing, raiseWarningIfMissing, setBooted, updateDeviceInfo, updateFromPDOonEmergencyMessage, onFault, onFaultResetclearAlarm, getAlertSeparator, getAlertService, getSubsystem, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNewprotected short strain
public void configureRegister1()
public void configureRegister2()
@Command(type=QUERY,
level=1,
description="read internal temperature in degrees Celsius.")
public double readTemperature()
@Command(type=QUERY,
level=1,
description="Read the strain value (or weight) : Integer net value (signed).")
public short readStrain()
readStrain in interface StrainGauge@Command(type=QUERY,
level=1,
description="Read the ADC value.")
public int readAdcValue()
@Command(type=QUERY,
level=1,
description="Read 32 bit float input value.")
public int readStrain32bitFloat()
Copyright © 2021 LSST. All rights reserved.