Table of Contents

Behavior device

WhoAmI
1216
Log files
Behavior_<address>.bin

Use the Harp device pattern to initialize the device, log data, and send commands to and receive messages from the Behavior device.

Harp device pattern

Check out the following in-depth guides to learn how to access the device functionality with the Harp.Behavior package:

Registers

The core registers implemented by every Harp device, such as WhoAmI and OperationControl, are described in the Device Registers and Operation specification.

Name Address Type Access DefaultĀ [range] Description
DigitalInputState 32 U8 Event Reflects the state of DI digital lines of each Port
OutputSet 34 U16 Write Set the specified digital output lines.
OutputClear 35 U16 Write Clear the specified digital output lines
OutputToggle 36 U16 Write Toggle the specified digital output lines
OutputState 37 U16 Write Write the state of all digital output lines
PortDIOSet 38 U8 Write Set the specified port DIO lines. This functionality has not yet been implemented.
PortDIOClear 39 U8 Write Clear the specified port DIO lines. This functionality has not yet been implemented.
PortDIOToggle 40 U8 Write Toggle the specified port DIO lines. This functionality has not yet been implemented.
PortDIOState 41 U8 Write Write the state of all port DIO lines. This functionality has not yet been implemented.
PortDIODirection 42 U8 Write Specifies which of the port DIO lines are outputs. This functionality has not yet been implemented.
PortDIOStateEvent 43 U8 Event Specifies the state of the port DIO lines on a line change
AnalogData 44 S16[3] Event Voltage at the ADC input and encoder value on Port 2
OutputPulseEnable 45 U16 Write 56 Enables the pulse function for the specified output lines
PulseDOPort0 46 U16 Write 500 [1:] Specifies the duration of the output pulse in milliseconds.
PulseDOPort1 47 U16 Write 500 [1:] Specifies the duration of the output pulse in milliseconds.
PulseDOPort2 48 U16 Write 500 [1:] Specifies the duration of the output pulse in milliseconds.
PulseSupplyPort0 49 U16 Write 15 [1:] Specifies the duration of the output pulse in milliseconds.
PulseSupplyPort1 50 U16 Write 15 [1:] Specifies the duration of the output pulse in milliseconds.
PulseSupplyPort2 51 U16 Write 15 [1:] Specifies the duration of the output pulse in milliseconds.
PulseLed0 52 U16 Write 500 [1:] Specifies the duration of the output pulse in milliseconds.
PulseLed1 53 U16 Write 500 [1:] Specifies the duration of the output pulse in milliseconds.
PulseRgb0 54 U16 Write 500 [1:] Specifies the duration of the output pulse in milliseconds.
PulseRgb1 55 U16 Write 500 [1:] Specifies the duration of the output pulse in milliseconds.
PulseDO0 56 U16 Write 250 [1:] Specifies the duration of the output pulse in milliseconds.
PulseDO1 57 U16 Write 250 [1:] Specifies the duration of the output pulse in milliseconds.
PulseDO2 58 U16 Write 250 [1:] Specifies the duration of the output pulse in milliseconds.
PulseDO3 59 U16 Write 250 [1:] Specifies the duration of the output pulse in milliseconds.
PwmFrequencyDO0 60 U16 Write 1000 [1:10000] Specifies the frequency of the PWM at DO0.
PwmFrequencyDO1 61 U16 Write 2000 [1:10000] Specifies the frequency of the PWM at DO1.
PwmFrequencyDO2 62 U16 Write 3000 [1:10000] Specifies the frequency of the PWM at DO2.
PwmFrequencyDO3 63 U16 Write 4000 [1:10000] Specifies the frequency of the PWM at DO3.
PwmDutyCycleDO0 64 U8 Write 50 [1:99] Specifies the duty cycle of the PWM at DO0.
PwmDutyCycleDO1 65 U8 Write 50 [1:99] Specifies the duty cycle of the PWM at DO1.
PwmDutyCycleDO2 66 U8 Write 50 [1:99] Specifies the duty cycle of the PWM at DO2.
PwmDutyCycleDO3 67 U8 Write 50 [1:99] Specifies the duty cycle of the PWM at DO3.
PwmStart 68 U8 Write Starts the PWM on the selected output lines.
PwmStop 69 U8 Write Stops the PWM on the selected output lines.
RgbAll 70 U8[6] Write Specifies the state of all RGB LED channels.
Rgb0 71 U8[3] Write Specifies the state of the RGB0 LED channels.
Rgb1 72 U8[3] Write Specifies the state of the RGB1 LED channels.
Led0Current 73 U8 Write 10 [2:100] Specifies the configuration of current to drive LED 0.
Led1Current 74 U8 Write 10 [2:100] Specifies the configuration of current to drive LED 1.
Led0MaxCurrent 75 U8 Write 30 [5:100] Specifies the maximum current allowed to drive LED 0, in mA.
Led1MaxCurrent 76 U8 Write 30 [5:100] Specifies the maximum current allowed to drive LED 1, in mA.
EventEnable 77 U8 Write 31 Specifies the active events in the device.
StartCameras 78 U8 Write Specifies the camera outputs to enable in the device.
StopCameras 79 U8 Write, Event Specifies the camera outputs to disable in the device. An event will be issued when the trigger signal is actually stopped being generated.
EnableServos 80 U8 Write Specifies the servo outputs to enable in the device.
DisableServos 81 U8 Write Specifies the servo outputs to disable in the device.
EnableEncoders 82 U8 Write Specifies the port quadrature counters to enable in the device.
EncoderMode 83 U8 Write Configures the operation mode of the quadrature encoders.
Camera0Frame 92 U8 Event Specifies that a frame was acquired on camera 0.
Camera0Frequency 93 U16 Write 30 [2:600] Specifies the trigger frequency for camera 0.
Camera1Frame 94 U8 Event Specifies that a frame was acquired on camera 1.
Camera1Frequency 95 U16 Write 30 [2:600] Specifies the trigger frequency for camera 1.
ServoMotor2Period 100 U16 Write 20000 [2:65534] Specifies the period of the servo motor in DO2, in microseconds.
ServoMotor2Pulse 101 U16 Write 1500 [6:65530] Specifies the pulse of the servo motor in DO2, in microseconds.
ServoMotor3Period 102 U16 Write 20000 [2:65534] Specifies the period of the servo motor in DO3, in microseconds.
ServoMotor3Pulse 103 U16 Write 1500 [6:65530] Specifies the pulse of the servo motor in DO3, in microseconds.
EncoderReset 108 U8 Write Reset the counter of the specified encoders to zero.
EnableSerialTimestamp 110 U8 Write Enables the timestamp for serial TX.
MimicPort0IR 111 U8 Write Specifies the digital output to mimic the Port 0 IR state.
MimicPort1IR 112 U8 Write Specifies the digital output to mimic the Port 1 IR state.
MimicPort2IR 113 U8 Write Specifies the digital output to mimic the Port 2 IR state.
MimicPort0Valve 117 U8 Write Specifies the digital output to mimic the Port 0 valve state.
MimicPort1Valve 118 U8 Write Specifies the digital output to mimic the Port 1 valve state.
MimicPort2Valve 119 U8 Write Specifies the digital output to mimic the Port 2 valve state.
PokeInputFilter 122 U8 Write 1 Specifies the low pass filter time value for poke inputs, in ms.