Table of Contents

Class Device

Namespace
Harp.LoadCells
Assembly
Harp.LoadCells.dll

Represents an observable source of messages from the Harp device connected at the specified serial port.

LoadCells
whoAmI1232
firmwareVersion1.1
hardwareTargets1.0

Registers

name address type length access description range interfaceType
AcquisitionState 32 U8 Write Enables the data acquisition. EnableFlag
LoadCellData 33 S16 8 Event Value of single ADC read from all load cell channels. LoadCellDataPayload
DigitalInputState 34 U8 Event Status of the digital input pin 0. An event will be emitted when DI0Trigger == None. DigitalInputs
SyncOutputState 35 U8 Event Status of the digital output pin 0. An periodic event will be emitted when DO0Sync == ToggleEachSecond. SyncOutputs
DI0Trigger 39 U8 Write Configuration of the digital input pin 0. TriggerConfig
DO0Sync 40 U8 Write Configuration of the digital output pin 0. SyncConfig
DO0PulseWidth 41 U8 Write Pulse duration (ms) for the digital output pin 0. The pulse will only be emitted when DO0Sync == Pulse. [1:255]
DigitalOutputSet 42 U16 Write Set the specified digital output lines. DigitalOutputs
DigitalOutputClear 43 U16 Write Clear the specified digital output lines. DigitalOutputs
DigitalOutputToggle 44 U16 Write Toggle the specified digital output lines DigitalOutputs
DigitalOutputState 45 U16 Write, Event Write the state of all digital output lines. An event will be emitted when the value of any pin was changed by a threshold event. DigitalOutputs
OffsetLoadCell0 48 S16 Write Offset value for Load Cell channel 0. 0 [-255:255]
OffsetLoadCell1 49 S16 Write Offset value for Load Cell channel 1. 0 [-255:255]
OffsetLoadCell2 50 S16 Write Offset value for Load Cell channel 2. 0 [-255:255]
OffsetLoadCell3 51 S16 Write Offset value for Load Cell channel 3. 0 [-255:255]
OffsetLoadCell4 52 S16 Write Offset value for Load Cell channel 4. 0 [-255:255]
OffsetLoadCell5 53 S16 Write Offset value for Load Cell channel 5. 0 [-255:255]
OffsetLoadCell6 54 S16 Write Offset value for Load Cell channel 6. 0 [-255:255]
OffsetLoadCell7 55 S16 Write Offset value for Load Cell channel 7. 0 [-255:255]
DO1TargetLoadCell 58 U8 Write Target Load Cell that will be used to trigger a threshold event on DO1 pin. LoadCellChannel
DO2TargetLoadCell 59 U8 Write Target Load Cell that will be used to trigger a threshold event on DO2 pin. LoadCellChannel
DO3TargetLoadCell 60 U8 Write Target Load Cell that will be used to trigger a threshold event on DO3 pin. LoadCellChannel
DO4TargetLoadCell 61 U8 Write Target Load Cell that will be used to trigger a threshold event on DO4 pin. LoadCellChannel
DO5TargetLoadCell 62 U8 Write Target Load Cell that will be used to trigger a threshold event on DO5 pin. LoadCellChannel
DO6TargetLoadCell 63 U8 Write Target Load Cell that will be used to trigger a threshold event on DO6 pin. LoadCellChannel
DO7TargetLoadCell 64 U8 Write Target Load Cell that will be used to trigger a threshold event on DO7 pin. LoadCellChannel
DO8TargetLoadCell 65 U8 Write Target Load Cell that will be used to trigger a threshold event on DO8 pin. LoadCellChannel
DO1Threshold 66 S16 Write Value used to threshold a Load Cell read, and trigger DO1 pin.
DO2Threshold 67 S16 Write Value used to threshold a Load Cell read, and trigger DO2 pin.
DO3Threshold 68 S16 Write Value used to threshold a Load Cell read, and trigger DO3 pin.
DO4Threshold 69 S16 Write Value used to threshold a Load Cell read, and trigger DO4 pin.
DO5Threshold 70 S16 Write Value used to threshold a Load Cell read, and trigger DO5 pin.
DO6Threshold 71 S16 Write Value used to threshold a Load Cell read, and trigger DO6 pin.
DO7Threshold 72 S16 Write Value used to threshold a Load Cell read, and trigger DO7 pin.
DO8Threshold 73 S16 Write Value used to threshold a Load Cell read, and trigger DO8 pin.
DO1TimeAboveThreshold 74 U16 Write Time (ms) above threshold value that is required to trigger a DO1 pin event. 0
DO2TimeAboveThreshold 75 U16 Write Time (ms) above threshold value that is required to trigger a DO2 pin event. 0
DO3TimeAboveThreshold 76 U16 Write Time (ms) above threshold value that is required to trigger a DO3 pin event. 0
DO4TimeAboveThreshold 77 U16 Write Time (ms) above threshold value that is required to trigger a DO4 pin event. 0
DO5TimeAboveThreshold 78 U16 Write Time (ms) above threshold value that is required to trigger a DO5 pin event. 0
DO6TimeAboveThreshold 79 U16 Write Time (ms) above threshold value that is required to trigger a DO6 pin event. 0
DO7TimeAboveThreshold 80 U16 Write Time (ms) above threshold value that is required to trigger a DO7 pin event. 0
DO8TimeAboveThreshold 81 U16 Write Time (ms) above threshold value that is required to trigger a DO8 pin event. 0
DO1TimeBelowThreshold 82 U16 Write Time (ms) below threshold value that is required to trigger a DO1 pin event. 0
DO2TimeBelowThreshold 83 U16 Write Time (ms) below threshold value that is required to trigger a DO2 pin event. 0
DO3TimeBelowThreshold 84 U16 Write Time (ms) below threshold value that is required to trigger a DO3 pin event. 0
DO4TimeBelowThreshold 85 U16 Write Time (ms) below threshold value that is required to trigger a DO4 pin event. 0
DO5TimeBelowThreshold 86 U16 Write Time (ms) below threshold value that is required to trigger a DO5 pin event. 0
DO6TimeBelowThreshold 87 U16 Write Time (ms) below threshold value that is required to trigger a DO6 pin event. 0
DO7TimeBelowThreshold 88 U16 Write Time (ms) below threshold value that is required to trigger a DO7 pin event. 0
DO8TimeBelowThreshold 89 U16 Write Time (ms) below threshold value that is required to trigger a DO8 pin event. 0
EnableEvents 90 U8 Write Specifies the active events in the device. LoadCellEvents
[Combinator(MethodName = "Generate")]
[WorkflowElementCategory(ElementCategory.Source)]
public class Device : Device, INamedElement
Inheritance
Device
Implements
Inherited Members

Constructors

Device()

Initializes a new instance of the Device class.

public Device()

Fields

WhoAmI

Represents the unique identity class of the Harp.LoadCells device. This field is constant.

public const int WhoAmI = 1232

Field Value

int

Properties

RegisterMap

Gets a read-only mapping from address to register type.

public static IReadOnlyDictionary<int, Type> RegisterMap { get; }

Property Value

IReadOnlyDictionary<int, Type>

Methods

CreateAsync(string)

Initializes a new instance of the asynchronous API to configure and interface with LoadCells devices on the specified serial port.

public static Task<AsyncDevice> CreateAsync(string portName)

Parameters

portName string

The name of the serial port used to communicate with the Harp device.

Returns

Task<AsyncDevice>

A task that represents the asynchronous initialization operation. The value of the Result parameter contains a new instance of the AsyncDevice class.