diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
index cbb2b24d..a2f9ca58 100644
--- a/.config/dotnet-tools.json
+++ b/.config/dotnet-tools.json
@@ -10,7 +10,7 @@
"rollForward": false
},
"harp.toolkit": {
- "version": "0.5.1",
+ "version": "0.6.1",
"commands": [
"harp.toolkit"
],
diff --git a/.gitattributes b/.gitattributes
index dd825286..e77ce03e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,44 +1,16 @@
-# Auto detect text files and normalize line endings
* text=auto
-# Scripts
+# Line endings required
*.cmd text eol=crlf
*.sh text eol=lf
-*.ps1 text
-# Config
-*.gitignore text
-*.gitattributes text
-*.gitmodules text eol=lf
-*.editorconfig text
-*.git-blame-ignore-revs text
-*.sln text
-*.proj text
-*.props text
-*.targets text
-*.csproj text
-*.wixproj text
-*.config text
-*.json text
-*.xml text
-*.yml text
+# Language diffs
+*.md diff=markdown
+*.cs diff=csharp
+*.c diff=cpp
+*.h diff=cpp
+*.cpp diff=cpp
+*.py diff=python
-# Code
-*.manifest text
-*.vsixmanifest text
-*.vstemplate text
-*.resx text
-*.cs text
-*.bonsai text
-*.wxs text
-
-# Documents
-LICENSE text
-*.md text diff=markdown
-*.rtf diff=astextplain
-
-# Graphics
-*.png binary
-*.ico binary
-*.gif binary
+# Known formats
*.svg text
diff --git a/.github/workflows/Harp.Behavior.yml b/.github/workflows/Harp.Behavior.yml
index d00221b4..9d00e7e7 100644
--- a/.github/workflows/Harp.Behavior.yml
+++ b/.github/workflows/Harp.Behavior.yml
@@ -141,8 +141,7 @@ jobs:
# ___ _ _ _ _ _ ___ _____
# | _ )_ _(_) |__| | | \| | __|_ _|
# | _ \ || | | / _` | _| .` | _| | |
- # |___/\_,_|_|_\__,_| (_)_|\_|___| |_|
- #
+ # |___/\_,_|_|_\__,_| (_)_|\_|___| |_|
# =====================================================================================================================================================================
build-dotnet:
strategy:
@@ -405,9 +404,6 @@ jobs:
# ----------------------------------------------------------------------- Push to GitHub Packages
- name: Push to GitHub Packages
run: dotnet nuget push "artifacts/packages/*.nupkg" --skip-duplicate --no-symbols --api-key ${{secrets.GITHUB_TOKEN}} --source https://nuget.pkg.github.com/${{github.repository_owner}}
- env:
- # This is a workaround for https://github.com/NuGet/Home/issues/9775
- DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER: 0
# =====================================================================================================================================================================
# Publish packages to NuGet.org
@@ -464,9 +460,6 @@ jobs:
- name: Push to NuGet.org
run: dotnet nuget push "artifacts/packages/*.nupkg" --api-key ${{steps.nuget-login.outputs.NUGET_API_KEY}} --source ${{vars.NUGET_API_URL}}
- env:
- # This is a workaround for https://github.com/NuGet/Home/issues/9775
- DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER: 0
# =====================================================================================================================================================================
diff --git a/.gitignore b/.gitignore
index 209e5173..aa1b24bc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
.vs/
+.vscode/
/artifacts/
**/.bonsai/Settings/
**/.bonsai/Packages/
diff --git a/docs/LICENSE-CODE b/docs/LICENSE-CODE
index b4602660..11cd6e24 100644
--- a/docs/LICENSE-CODE
+++ b/docs/LICENSE-CODE
@@ -1,13 +1,11 @@
-The MIT License (MIT)
+Copyright (C) harp-tech and Contributors
-Copyright (c) harp-tech and Contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
diff --git a/docs/README.md b/docs/README.md
index 24317ab4..02ce85ce 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,33 +1,25 @@
-## Harp Behavior
-This is a multi-purpose device tailored to behavioral experiments. It allows control of pokes, RGB LEDs, LEDs, cameras, servo motors and a quadrature counter.
+# Harp Behavior
-
+The Harp Behavior device is a multi-purpose data acquisition and control system for behavioral neuroscience experiments. It controls mice pokes, LEDs, RGB LEDs, cameras and servo motors, reads digital, analog and quadrature encoder inputs, and timestamps every input and output on the same hardware clock.
-### Key features ###
+
-* Enable pulse and configure duration for each output
-* Support for PWM configuration (frequency up to 10KHz and duty cycle)
-* LED current (up to 100mA) and maximum nominal current configuration
-* Up to 2 cameras controlling (DO0 and DO1)
-* Up to 2 servo motors (DO2 and DO3)
-* Up to 1 quadrature counter (Port2) (Note: Port0 and Port1 can also act as quadrature counters but this is a request feature)
+## Documentation
+The [device documentation](https://harp-tech.org/device.behavior) covers the specifications, setting up the device, installing the software, examples for each feature, and the register reference.
-### Connectivity ###
+## Software
-* 1x clock sync input (CLKIN) [stereo jack]
-* 1x USB (for computer) [USB type B]
-* 1x 12V supply [barrel connector jack]
-* 3x poke connectors (LED+12V valve) (Poke0, Poke1, Poke2) [RJ45]
-* 2x LEDs outputs (5V) (LED0, LED1) [screw terminal]
-* 2x RGB LEDs outputs (5V) (RGB0, RGB1) [flick lock 3x male pins]
-* 4x general purpose digital outputs with PWM (5V) (DO0-DO3) [screw terminal]
-* 1x ADC (5V) [screw terminal]
+The device can be used from [Bonsai](https://bonsai-rx.org/) through the `Harp.Behavior` package, from Python through the `harp-behavior` package, or without programming through the Behavior app. The [installation](https://harp-tech.org/device.behavior/articles/installation.html) page describes how to install each of them.
-## Interface ##
+## Repository layout
-The interface with the Harp Behavior can be done through [Bonsai](https://bonsai-rx.org/) or a dedicated GUI (Graphical User Interface).
+- `device.yml` describes the registers of the device. The firmware headers and the .NET and Python interfaces are generated from it.
+- `firmware` holds the firmware of the device.
+- `hardware` holds the PCB and mechanical design files.
+- `software` holds the .NET packages, including the Bonsai package and the app, and the Python package.
+- `docs` holds the documentation site.
-## Licensing ##
+## Licensing
-Each part of this repository is released under its own license. The `LICENSE` file at the root of the repository lists the licenses that apply to each folder.
\ No newline at end of file
+Each part of this repository is released under its own license. The `LICENSE` file at the root of the repository lists the licenses that apply to each folder.
diff --git a/docs/articles/advanced-configuration.md b/docs/articles/advanced-configuration.md
index d1dc144c..98570277 100644
--- a/docs/articles/advanced-configuration.md
+++ b/docs/articles/advanced-configuration.md
@@ -1,6 +1,6 @@
# Advanced configuration
-These advanced configuration settings affect which data the Behavior device reports. By default, all events are enabled, but you can selectively disable certain events. The device can also transmit serial timestamps on the poke port **P2** for logging and alignment on non-Harp devices. Refer to the [connections](./ports-connections.md?tabs=breakout#connections) article to set up the [Breakout](./peripherals/breakout.md) board on **P2** for the serial timestamp.
+These advanced configuration settings affect which data the Behavior device reports. By default, all events are enabled, but you can selectively disable certain events. The device can also transmit serial timestamps on the poke port **P2** for logging and alignment on non-Harp devices. Refer to the [connections](./ports-connections.md?tabs=breakout#connections) article to set up the [Breakout](./peripherals/breakout.md) on **P2** for the serial timestamp.
This article covers how to visualize the default event streams, select the active events, and transmit serial timestamps in Bonsai.
diff --git a/docs/articles/behavior-app.md b/docs/articles/app.md
similarity index 97%
rename from docs/articles/behavior-app.md
rename to docs/articles/app.md
index aa5fa80f..ac8a2938 100644
--- a/docs/articles/behavior-app.md
+++ b/docs/articles/app.md
@@ -1,3 +1,7 @@
+---
+title: App
+---
+
# Behavior app
The Behavior app is a desktop app for configuring and testing the device without using Bonsai.
diff --git a/docs/articles/control-digital-outputs.md b/docs/articles/control-digital-outputs.md
index 1e17daed..2b777efe 100644
--- a/docs/articles/control-digital-outputs.md
+++ b/docs/articles/control-digital-outputs.md
@@ -1,6 +1,6 @@
# Control digital outputs
-The Behavior device has four general-purpose digital outputs **DO0**–**DO3** on the **Output** connector. Refer to the [connections](./ports-connections.md?tabs=digitaloutput#connections) article to connect an LED to **DO0** as an indicator, which we will use for the rest of these examples.
+The Behavior device has four general-purpose digital outputs **DO0**–**DO3** on the **Output** connector. Refer to the [connections](./ports-connections.md?tabs=digital-output#connections) article to connect an LED to **DO0** as an indicator, which we will use for the rest of these examples.
This article covers how to set, clear, toggle, and pulse any of these outputs in Bonsai.
@@ -17,7 +17,7 @@ The complete workflow is shown below. Copy and paste it into Bonsai to get start
> - LED connectors **L0**, **L1** and **RGB**: represented as `Led0`, `Led1`, `Rgb0` and `Rgb1` in Bonsai. See [Control LEDs](control-leds.md).
> [!NOTE]
-> If you need more digital outputs, the [Breakout](./peripherals/breakout.md) board provides access to the poke port output lines through screw terminals.
+> If you need more digital outputs, the [Breakout](./peripherals/breakout.md) provides access to the poke port output lines through screw terminals.
## Set and clear outputs
diff --git a/docs/articles/control-leds.md b/docs/articles/control-leds.md
index 2e672c12..e067d930 100644
--- a/docs/articles/control-leds.md
+++ b/docs/articles/control-leds.md
@@ -1,6 +1,6 @@
# Control LEDs
-The Behavior device controls two kinds of light output: conventional LEDs on the **L0** and **L1** connectors and addressable RGB LEDs on the **RGB** connector. Refer to the [LED connection](./ports-connections.md?tabs=led#connections) section to set up a conventional LED on **L0** and the [RGB LED connection](./ports-connections.md?tabs=rgbled#connections) section to set up two addressable RGB LEDs on the **RGB** connector. We will use these ports for the rest of these examples.
+The Behavior device controls two kinds of light output: conventional LEDs on the **L0** and **L1** connectors and addressable RGB LEDs on the **RGB** connector. Refer to the [LED connection](./ports-connections.md?tabs=led#connections) section to set up a conventional LED on **L0** and the [RGB LED connection](./ports-connections.md?tabs=rgb-led#connections) section to set up two addressable RGB LEDs on the **RGB** connector. We will use these ports for the rest of these examples.
This article covers configuring the LED current, setting RGB colors, and turning on both kinds of LED in Bonsai.
diff --git a/docs/articles/control-poke.md b/docs/articles/control-poke.md
index 82ca31e8..49ff88a4 100644
--- a/docs/articles/control-poke.md
+++ b/docs/articles/control-poke.md
@@ -1,6 +1,6 @@
# Control poke peripheral
-The [Mice Poke](./peripherals/micepoke.md) is a nose poke peripheral for the Behavior device which uses an infrared beam sensor for poke detection. It also includes cue LEDs and an optional solenoid valve for controlled liquid delivery, typically used for rewards. Refer to the [connections](./ports-connections.md?tabs=poke#connections) article to set up the hardware connection on poke port **P0**, which we will use for the rest of these examples.
+The [Mice Poke](./peripherals/mice-poke.md) is a nose poke peripheral for the Behavior device which uses an infrared beam sensor for poke detection. It also includes cue LEDs and an optional solenoid valve for controlled liquid delivery, typically used for rewards. Refer to the [connections](./ports-connections.md?tabs=mice-poke#connections) article to set up the hardware connection on poke port **P0**, which we will use for the rest of these examples.
This article covers how to visualize poke events, debounce noisy inputs, control the cue LEDs, and dispense liquid rewards with the Mice Poke peripheral in Bonsai.
diff --git a/docs/articles/behavior.md b/docs/articles/device.md
similarity index 86%
rename from docs/articles/behavior.md
rename to docs/articles/device.md
index e09a8435..9790be0d 100644
--- a/docs/articles/behavior.md
+++ b/docs/articles/device.md
@@ -4,7 +4,7 @@ title: Device
# Behavior device
-{width=450}
+{width=450}
## Key features
@@ -19,16 +19,16 @@ title: Device
- 1 on the **ADC** connector
- 1 on the **Input** connector
- Digital inputs: 7 (5 V)
- - 3 general-purpose and 3 active-low digital inputs on the poke ports accessible with the [Breakout](./peripherals/breakout.md) board
+ - 3 general-purpose and 3 active-low digital inputs on the poke ports accessible with the [Breakout](./peripherals/breakout.md)
- 1 on the **Input** connector
- Digital outputs: 7 (5 V)
- 4 on the **Output** connector
- - 3 on the poke ports, accessible with the [Breakout](./peripherals/breakout.md) board
+ - 3 on the poke ports, accessible with the [Breakout](./peripherals/breakout.md)
- Digital output pulse duration: 1–65535 ms (supported on all digital outputs)
- Digital output PWM: 1–10000 Hz, duty cycle 1–99% (supported on the **Output** connector only)
- Digital output drive current: Up to 300 mA per line, total 500 mA across outputs
- Poke ports: 3 (RJ45)
- - For the [Mice Poke](./peripherals/micepoke.md), [Rotary Encoder](./peripherals/rotaryencoder.md), or [Breakout](./peripherals/breakout.md) board
+ - For the [Mice Poke](./peripherals/mice-poke.md), [Rotary Encoder](./peripherals/rotary-encoder.md), or [Breakout](./peripherals/breakout.md)
- LED outputs: 2 (2–100 mA drive current)
- RGB LED outputs: 2 (WS2812-type addressable LED connector, driven as a serial chain)
- Camera triggers: 2 (**DO0**/**DO1**, 2–600 Hz)
@@ -50,6 +50,7 @@ title: Device
| Version | Notes |
| ------- | ----- |
+| 3.4 |
- Fixed the red and green channels of the RGB LED registers
- Fixed the DIO lines as mimic outputs
|
| 3.3 | - Fixed the read function of the digital inputs register
|
| 3.2 | - Add limits to ServoMotor registers
- Create displacement reading option for quadrature encoder.
|
| 3.1 | - Support for hardware 2.0
- Added serial timestamp registers
|
diff --git a/docs/articles/errors.md b/docs/articles/errors.md
index aac65a0e..e00e63d5 100644
--- a/docs/articles/errors.md
+++ b/docs/articles/errors.md
@@ -10,7 +10,7 @@ A: Either the wrong communications port in the `PortName` property in [`Device`]
**Q: Running the Bonsai workflow or connecting to the device in the Behavior app throws an error "Access to the port `ComX` is denied".**
-A: Only one interface connection to the Behavior device can be opened at one time. Check that Bonsai and the [Behavior app](behavior-app.md) are not running at the same time, or that multiple instances of either are running. Sometimes, the port can also be locked by a program that did not terminate correctly; restarting the computer fixes it.
+A: Only one interface connection to the Behavior device can be opened at one time. Check that Bonsai and the [Behavior app](app.md) are not running at the same time, or that multiple instances of either are running. Sometimes, the port can also be locked by a program that did not terminate correctly; restarting the computer fixes it.
## Device errors
@@ -20,7 +20,7 @@ A: One possible reason is that the [quadrature encoder](track-rotary-encoder.md)
**Q: An external device does not detect the low state of a digital output. The line reads 5 V when the output is set, but does not reach 0 V when it is cleared.**
-A: The input line on the external device might have low impedance. The **DO0**–**DO3** outputs are designed for high-impedance inputs and return to 0 V through a passive pull-down resistor. Try using the poke port digital outputs with the [Breakout](./peripherals/breakout.md) board, as those pins have an actively driven low state.
+A: The input line on the external device might have low impedance. The **DO0**–**DO3** outputs are designed for high-impedance inputs and return to 0 V through a passive pull-down resistor. Try using the poke port digital outputs with the [Breakout](./peripherals/breakout.md), as those pins have an actively driven low state.
Also check that the ground connection is shared between the devices, as improper grounding can produce offset voltage levels in the low state.
diff --git a/docs/articles/installation.md b/docs/articles/installation.md
index fd02ff58..4e6ae69e 100644
--- a/docs/articles/installation.md
+++ b/docs/articles/installation.md
@@ -8,7 +8,7 @@ These steps are only required the first time you connect the device to a new com
# [App](#tab/app)
-The [Behavior app](behavior-app.md) is a desktop app for configuring and testing the device without using Bonsai. It is distributed as a [.NET tool](https://learn.microsoft.com/dotnet/core/tools/global-tools).
+The [Behavior app](app.md) is a desktop app for configuring and testing the device without using Bonsai. It is distributed as a [.NET tool](https://learn.microsoft.com/dotnet/core/tools/global-tools).
{width=600}
@@ -58,12 +58,33 @@ pip install harp-data
## Firmware update
-New features are added and bugs are fixed with firmware updates which are published on the [release page](https://github.com/harp-tech/device.behavior/releases) in the device GitHub repository. Each release contains a `.hex` file tagged with the firmware (`fw`) and hardware (`hw`) version. For instance, `Behavior-fw3.3-harp1.15-hw2.1-ass0.hex` is firmware v3.3 for a hardware v2.1 Behavior device. Download the latest firmware version that matches the hardware version of the device from the "Assets" section under each release.
+New features are added and bugs are fixed with firmware updates which are published on the [release page](https://github.com/harp-tech/device.behavior/releases) in the device GitHub repository. Each release contains a `.hex` file tagged with the firmware (`fw`) and hardware (`hw`) version. For instance, `Behavior-fw3.4-harp1.15-hw2.1-ass0.hex` is firmware v3.4 for a hardware v2.1 Behavior device. Download the latest firmware version that matches the hardware version of the device from the "Assets" section under each release.
> [!TIP]
> The hardware version is printed on the PCB silkscreen (e.g. `harp behavior v2.1`).
-To update the firmware, use the device setup tool in Bonsai:
+The firmware can be updated from a terminal with the Harp Toolkit, or from the device setup dialog in Bonsai.
+
+# [Toolkit](#tab/toolkit)
+
+The [Harp Toolkit](https://harp-tech.org/toolkit/) is a command-line tool for working with Harp devices. Like the Behavior app, it is distributed as a .NET tool.
+
+- Download and install the [.NET SDK](https://dotnet.microsoft.com/download), version 8 or later.
+- Install the toolkit from a terminal with:
+
+```cmd
+dotnet tool install -g Harp.Toolkit
+```
+
+- Update the firmware with the serial port of the device and the downloaded `.hex` file:
+
+```cmd
+harp.toolkit update --port COM3 Behavior-fw3.4-harp1.15-hw2.1-ass0.hex
+```
+
+The toolkit checks that the file matches the device before writing it, and waits for the device to restart with the new firmware. Run `harp.toolkit list` to find the serial port of the device. The toolkit [firmware update](https://harp-tech.org/toolkit/articles/update.html) documentation describes every option.
+
+# [Bonsai](#tab/device-setup)
{width=650}
@@ -77,6 +98,8 @@ To update the firmware, use the device setup tool in Bonsai:
After the update, the device will reboot with the new firmware.
+***
+
[!INCLUDE [](../includes/version-footer.md)]
diff --git a/docs/articles/mimic-poke-signals.md b/docs/articles/mimic-poke-signals.md
index f57b5878..25d792e6 100644
--- a/docs/articles/mimic-poke-signals.md
+++ b/docs/articles/mimic-poke-signals.md
@@ -2,7 +2,7 @@
The Behavior device can mimic or mirror the poke peripheral's infrared beam signal and valve output on other output lines. This is useful for triggering external equipment directly or recording reward delivery on an external acquisition system without the round-trip latency introduced by routing signals through the computer.
-Refer to the [Mice Poke connection](./ports-connections.md?tabs=poke#connections) section to set up the [Mice Poke](./peripherals/micepoke.md) peripheral on port **P0** and the [Digital Output connection](./ports-connections.md?tabs=digitaloutput#connections) section to connect an LED to **DO0** as an indicator. We will use these ports for the rest of the exercises.
+Refer to the [Mice Poke connection](./ports-connections.md?tabs=mice-poke#connections) section to set up the [Mice Poke](./peripherals/mice-poke.md) peripheral on port **P0** and the [Digital Output connection](./ports-connections.md?tabs=digital-output#connections) section to connect an LED to **DO0** as an indicator. We will use these ports for the rest of the exercises.
This article covers how to mimic the poke peripheral's infrared signal and valve outputs in Bonsai.
diff --git a/docs/articles/peripherals/breakout.md b/docs/articles/peripherals/breakout.md
index 246ef2cb..37090fe8 100644
--- a/docs/articles/peripherals/breakout.md
+++ b/docs/articles/peripherals/breakout.md
@@ -2,7 +2,7 @@
The Harp Behavior Breakout is a peripheral that provides access to the Behavior device's poke port lines via screw terminals, without the need for custom cables. Refer to the [connections](../ports-connections.md?tabs=breakout#connections) article to set up the peripheral and the [Read digital inputs](../read-digital-inputs.md), [Control digital outputs](../control-digital-outputs.md), or [Transmit serial timestamps](../advanced-configuration.md#transmit-serial-timestamps) articles to use it in Bonsai.
-{width=350} {width=350}
+{width=350} {width=350}
*Left: Breakout v1.1. Right: Breakout v2.1.*
@@ -13,7 +13,7 @@ The Harp Behavior Breakout is a peripheral that provides access to the Behavior
- Supports serial timestamp output, with the logic level selected by the onboard jumper (v2.x only).
> [!NOTE]
-> Pick the board version by the feature you need. Both features are not available on the same board as they share the same port line.
+> Pick the Breakout version by the feature you need. Both features are not available on the same version as they share the same port line.
## Specs
@@ -30,17 +30,17 @@ The Harp Behavior Breakout is a peripheral that provides access to the Behavior
For connection with a quadrature encoder:
-| Quadrature encoder pin | Breakout board pin |
-| ---------------------- | ------------------ |
-| A | DI |
-| B | DIO |
-| Supply | +5V |
-| Ground | GND |
+| Quadrature encoder pin | Breakout pin |
+| ---------------------- | ------------ |
+| A | DI |
+| B | DIO |
+| Supply | +5V |
+| Ground | GND |
## Hardware
| Version | Compatible Behavior device | Notes |
-| ------- | ------------------- | ----- |
+| ------- | -------------------------- | ----- |
| 2.x | > 2.0 | - Serial TX terminal replaces the +12V and SUP_RTN terminals
- TX logic level jumper-selectable between 3.3 V and 5 V
|
| 1.1 | > 1.2 | |
diff --git a/docs/articles/peripherals/micepoke.md b/docs/articles/peripherals/mice-poke.md
similarity index 89%
rename from docs/articles/peripherals/micepoke.md
rename to docs/articles/peripherals/mice-poke.md
index 5b8670e2..5ecd7d1b 100644
--- a/docs/articles/peripherals/micepoke.md
+++ b/docs/articles/peripherals/mice-poke.md
@@ -1,6 +1,6 @@
# Mice Poke
-The Harp Behavior Mice Poke is a peripheral for the Behavior device that has onboard cue LEDs, detects pokes with an infrared beam, and controls a solenoid valve for reward delivery. Refer to the [connections](../ports-connections.md?tabs=poke#connections) article to set up the peripheral and the [Control poke peripheral](../control-poke.md) article to use it in Bonsai.
+The Harp Behavior Mice Poke is a peripheral for the Behavior device that has onboard cue LEDs, detects pokes with an infrared beam, and controls a solenoid valve for reward delivery. Refer to the [connections](../ports-connections.md?tabs=mice-poke#connections) article to set up the peripheral and the [Control poke peripheral](../control-poke.md) article to use it in Bonsai.
{width=450}
@@ -28,7 +28,7 @@ The Harp Behavior Mice Poke is a peripheral for the Behavior device that has onb
## Hardware
| Version | Compatible Behavior device | Notes |
-| ------- | ------------------------- | ----- |
+| ------- | -------------------------- | ----- |
| 1.4 | > 1.0 | - Updated valve footprint
- Increased LED resistor
|
| 1.3 | > 1.0 | - Screw terminals consolidated into a single block
- Added infrared beam and photodiode access on the screw terminals
|
| 1.2 | > 1.0 | |
diff --git a/docs/articles/peripherals/photodiode.md b/docs/articles/peripherals/photodiode.md
index 6dd2e4ae..93251864 100644
--- a/docs/articles/peripherals/photodiode.md
+++ b/docs/articles/peripherals/photodiode.md
@@ -19,7 +19,7 @@ The Harp Behavior Photodiode is a peripheral for the Behavior device. It detects
## Hardware
| Version | Compatible Behavior device | Notes |
-| ------- | ------------------------- | ----- |
+| ------- | -------------------------- | ----- |
| 2.3 | > 1.0 | |
Assembled units are available from the [Open Ephys store](https://open-ephys.org/harp).
diff --git a/docs/articles/peripherals/rotaryencoder.md b/docs/articles/peripherals/rotary-encoder.md
similarity index 87%
rename from docs/articles/peripherals/rotaryencoder.md
rename to docs/articles/peripherals/rotary-encoder.md
index 2490e6af..beb0c415 100644
--- a/docs/articles/peripherals/rotaryencoder.md
+++ b/docs/articles/peripherals/rotary-encoder.md
@@ -1,6 +1,6 @@
# Rotary Encoder
-The Harp Behavior Rotary Encoder is a peripheral for the Behavior device that can be used to demonstrate how rotation can be tracked when the onboard shaft is rotated. It plugs directly into poke port **P2**, the only port with a quadrature counter. Refer to the [connections](../ports-connections.md?tabs=encoder#connections) article to set up the peripheral and the [Track rotary encoder](../track-rotary-encoder.md) article to use it in Bonsai.
+The Harp Behavior Rotary Encoder is a peripheral for the Behavior device that can be used to demonstrate how rotation can be tracked when the onboard shaft is rotated. It plugs directly into poke port **P2**, the only port with a quadrature counter. Refer to the [connections](../ports-connections.md?tabs=rotary-encoder#connections) article to set up the peripheral and the [Track rotary encoder](../track-rotary-encoder.md) article to use it in Bonsai.
{width=450}
@@ -25,7 +25,7 @@ The Harp Behavior Rotary Encoder is a peripheral for the Behavior device that ca
## Hardware
| Version | Compatible Behavior device | Notes |
-| ------- | ------------------- | ----- |
+| ------- | -------------------------- | ----- |
| 1.3 | > 1.0 | |
| 1.2 | > 1.0 | - Replaced the optical encoder with an Alps Alpine EC12E24204A9 mechanical encoder
- Added pull-ups and filtering on the quadrature channels
|
| 1.0 | > 1.0 | - Initial version, using a Bourns ENC1J-D28-L00128 optical encoder (128 pulses per revolution)
|
diff --git a/docs/articles/peripherals/speaker.md b/docs/articles/peripherals/speaker.md
index dd39ef15..1c289322 100644
--- a/docs/articles/peripherals/speaker.md
+++ b/docs/articles/peripherals/speaker.md
@@ -26,7 +26,7 @@ The Harp Behavior Speaker is a peripheral that connects to one of the Behavior d
## Hardware
| Version | Compatible Behavior device | Notes |
-| ------- | ------------------- | ----- |
+| ------- | -------------------------- | ----- |
| 1.2 | > 1.0 | - Fixed the volume direction
|
| 1.1 | > 1.0 | |
diff --git a/docs/articles/peripherals/toc.yml b/docs/articles/peripherals/toc.yml
index de2d6ce0..df0f68c7 100644
--- a/docs/articles/peripherals/toc.yml
+++ b/docs/articles/peripherals/toc.yml
@@ -1,5 +1,5 @@
-- href: micepoke.md
+- href: mice-poke.md
- href: breakout.md
-- href: rotaryencoder.md
+- href: rotary-encoder.md
- href: speaker.md
- href: photodiode.md
diff --git a/docs/articles/ports-connections.md b/docs/articles/ports-connections.md
index 069c346c..da590cc6 100644
--- a/docs/articles/ports-connections.md
+++ b/docs/articles/ports-connections.md
@@ -8,7 +8,7 @@ This article covers the ports on the Behavior device, as well as how to connect
**12V PWR (Barrel Jack)** - This port powers the Behavior device and requires a 12 V power supply.
-**USB (USB-C)** - This port connects the device to the control computer running [Bonsai](bonsai.md) or the [Behavior app](./behavior-app.md).
+**USB (USB-C)** - This port connects the device to the control computer running [Bonsai](bonsai.md) or the [Behavior app](./app.md).
**CLKIN (Stereo Jack)** - This [Harp](https://harp-tech.org/articles/about.html) clock input accepts a clock output from any compatible Harp clock generator or synchronizer (e.g. [Harp Timestamp Generator](https://github.com/harp-tech/device.timestampgeneratorgen3)) for synchronization with other connected devices.
@@ -17,7 +17,7 @@ This article covers the ports on the Behavior device, as well as how to connect
- 4 seconds when in standby
- 100 milliseconds when a catastrophic error occurs
-**P0, P1, P2 (RJ45)** - These poke ports interface directly with the [Mice Poke](./peripherals/micepoke.md) peripheral for poke detection and reward delivery. Alternatively, use the [Breakout](./peripherals/breakout.md) board to interface with other accessories. Port **P2** also has a quadrature counter for [rotation tracking](track-rotary-encoder.md). Use it with the [Rotary Encoder](./peripherals/rotaryencoder.md) peripheral, or with a quadrature encoder connected through the Breakout board.
+**P0, P1, P2 (RJ45)** - These poke ports interface directly with the [Mice Poke](./peripherals/mice-poke.md) peripheral for poke detection and reward delivery. Alternatively, use the [Breakout](./peripherals/breakout.md) to interface with other accessories. Port **P2** also has a quadrature counter for [rotation tracking](track-rotary-encoder.md). Use it with the [Rotary Encoder](./peripherals/rotary-encoder.md) peripheral, or with a quadrature encoder connected through the Breakout.
**ADC (Screw Terminal)** - This connector carries the first analog input (**AD0**), a 5 V supply pin and two ground connections.
@@ -31,7 +31,7 @@ This article covers the ports on the Behavior device, as well as how to connect
## Connections
-# [Analog input](#tab/analoginput)
+# [Analog input](#tab/analog-input)
{width=600}
@@ -39,21 +39,21 @@ This article covers the ports on the Behavior device, as well as how to connect
2. Connect the ground wire to any **GND** pin.
3. Refer to the [Acquire analog data](acquire-analog-data.md) article to read the signal in Bonsai.
-# [Digital input](#tab/digitalinput)
+# [Digital input](#tab/digital-input)
{width=600}
-1. Wire the digital signal (5 V) to **DI3** on the **Input** connector. Alternatively, use the [Breakout](./peripherals/breakout.md) board to access more digital inputs on the poke ports.
+1. Wire the digital signal (5 V) to **DI3** on the **Input** connector. Alternatively, use the [Breakout](./peripherals/breakout.md) to access more digital inputs on the poke ports.
2. Connect the ground wire to any **GND** pin.
3. Refer to the [Read digital inputs](read-digital-inputs.md) article to visualize the input events in Bonsai.
-# [Digital output](#tab/digitaloutput)
+# [Digital output](#tab/digital-output)
{width=600}
To connect a logic-level output to an external device:
-1. Wire a digital output from **DO0**–**DO3** on the **Output** connector to the external device's digital input. Alternatively, use the [Breakout](./peripherals/breakout.md) board to access more digital outputs on the poke ports.
+1. Wire a digital output from **DO0**–**DO3** on the **Output** connector to the external device's digital input. Alternatively, use the [Breakout](./peripherals/breakout.md) to access more digital outputs on the poke ports.
2. Connect the external device's ground to any **GND** pin.
3. Refer to the [Control digital outputs](control-digital-outputs.md) article to output digital events in Bonsai.
@@ -88,7 +88,7 @@ For an analog reading:
For a digital reading:
1. Use the switch on the side of the casing to select **DIG**.
-2. Wire the signal wire to **DI3** on the **Input** connector. Alternatively, use the [Breakout](./peripherals/breakout.md) board to access more digital inputs on the poke ports.
+2. Wire the signal wire to **DI3** on the **Input** connector. Alternatively, use the [Breakout](./peripherals/breakout.md) to access more digital inputs on the poke ports.
3. Connect the ground wire to any **GND** pin.
4. Wire the supply wire to the **+5V** pin on the **ADC** connector.
5. Refer to the [Read digital inputs](./read-digital-inputs.md) article to read the light intensity as a digital input reading in Bonsai.
@@ -116,7 +116,7 @@ For a digital reading:
2. Wire the short leg (cathode, **K**) to the **K** pin of the same terminal pair.
3. Refer to the [Control LEDs](control-leds.md) article to configure and switch the LEDs in Bonsai.
-# [RGB LED](#tab/rgbled)
+# [RGB LED](#tab/rgb-led)
{width=600}
@@ -129,11 +129,11 @@ For a digital reading:
> [!NOTE]
> The **RGB** connector is a 2.54 mm Molex KK header with a friction lock. You can assemble a mating connector with a Molex KK crimp housing (22-01-3037) and three crimp terminals (08-50-0160). Dupont style female jumper wires also fit, but without a latch they hold by friction alone.
-# [Mice Poke](#tab/poke)
+# [Mice Poke](#tab/mice-poke)
{width=600}
-1. Connect the [Mice Poke](./peripherals/micepoke.md) peripheral to port **P0**, **P1**, or **P2** with an RJ45 cable.
+1. Connect the [Mice Poke](./peripherals/mice-poke.md) peripheral to port **P0**, **P1**, or **P2** with an RJ45 cable.
2. If you are using a variant of the Mice Poke peripheral with the integrated water valve, connect the valve's inlet to the liquid container with tubing.
3. Refer to the [Control poke peripheral](control-poke.md) article to configure and use the Mice Poke peripheral in Bonsai.
@@ -142,7 +142,7 @@ Use them to connect an extra sensor, wire a solenoid valve, add an additional cu
To connect a sensor like a lever:
-1. Wire one contact of the lever switch to **DIO1**. This line is not connected to any of the sensors onboard the Mice Poke Peripheral and can be used as an active-low digital input (the functionality to toggle it to digital output has not been added yet).
+1. Wire one contact of the lever switch to **DIO1**. This line is not connected to any of the sensors onboard the Mice Poke peripheral and can be used as an active-low digital input (the functionality to toggle it to digital output has not been added yet).
2. Wire the other end of the lever switch to **GND**.
3. Refer to the [Read digital inputs](read-digital-inputs.md#visualize-port-dio-events) article to read the signal in Bonsai.
@@ -164,11 +164,11 @@ To log the peripheral signals on an external device:
- **LED** - Reports the status of the [onboard cue LEDs](control-poke.md#control-poke-leds).
2. Share ground between the external device and any **GND** terminal.
-# [Rotary Encoder](#tab/encoder)
+# [Rotary Encoder](#tab/rotary-encoder)
{width=600}
-1. Connect the [Rotary Encoder](./peripherals/rotaryencoder.md) peripheral to port **P2** with an RJ45 cable. This is the only port with the quadrature counter functionality.
+1. Connect the [Rotary Encoder](./peripherals/rotary-encoder.md) peripheral to port **P2** with an RJ45 cable. This is the only port with the quadrature counter functionality.
2. Refer to the [Track rotary encoder](track-rotary-encoder.md) article to read the encoder in Bonsai.
No further wiring is necessary to use the encoder with the Behavior device. The solder pads are only needed to access the raw quadrature signals for logging.
@@ -180,7 +180,7 @@ To log the raw quadrature signals:
3. Share ground between the external device and the **-** pad.
> [!NOTE]
-> The Harp Behavior Rotary Encoder is meant to demonstrate simple rotational tracking. For applications in which high resolution tracking is needed, such as a running wheel, use a more precise quadrature encoder. We also recommend using the [Breakout](./peripherals/breakout.md) board instead of the solder pads on this peripheral for an easier connection with external quadrature encoders.
+> The Harp Behavior Rotary Encoder is meant to demonstrate simple rotational tracking. For applications in which high resolution tracking is needed, such as a running wheel, use a more precise quadrature encoder. We also recommend using the [Breakout](./peripherals/breakout.md) instead of the solder pads on this peripheral for an easier connection with external quadrature encoders.
# [Camera](#tab/camera)
@@ -200,7 +200,7 @@ To log the raw quadrature signals:
{width=600}
1. Connect the servo signal wire to **DO2** or **DO3** on the **Output** connector. These are the only ports that support the servo functionality.
-2. Connect the servo power wire to the **+5V** pin on the **ADC** connector. Alternatively, use the [Breakout](./peripherals/breakout.md) board to access more power pins on the poke ports. For servos that draw more than 200 mA, or that require a supply voltage other than 5 V, power the servo from an external supply matching its rating instead. Never connect the external supply to the Behavior device's 5 V pin; it must power the servo only.
+2. Connect the servo power wire to the **+5V** pin on the **ADC** connector. Alternatively, use the [Breakout](./peripherals/breakout.md) to access more power pins on the poke ports. For servos that draw more than 200 mA, or that require a supply voltage other than 5 V, power the servo from an external supply matching its rating instead. Never connect the external supply to the Behavior device's 5 V pin; it must power the servo only.
3. Connect the servo ground wire to a **GND** pin. For servos requiring an external power supply, connect the external supply's ground to a **GND** pin.
4. Refer to the [Control servo motors](control-servo-motors.md) article to move the servo in Bonsai.
@@ -208,17 +208,17 @@ To log the raw quadrature signals:
{width=600}
-This section describes the connections required for different uses of the [Breakout](./peripherals/breakout.md) board. Note that some functionality is only available in specific versions of the Breakout board.
+This section describes the connections required for different uses of the [Breakout](./peripherals/breakout.md). Note that some functionality is only available in specific versions of the Breakout.
To connect digital inputs and outputs (both v1.1 and v2.x):
-1. Connect the Breakout board to port **P0**, **P1**, or **P2** with an RJ45 cable.
+1. Connect the Breakout to port **P0**, **P1**, or **P2** with an RJ45 cable.
2. Wire the signal wire from external devices to the **DI**, **DIO**, or **DO** screw terminals.
3. Wire the external device's ground to a **GND** terminal.
4. If the external device needs power, wire its supply to the **+5V** terminal.
5. Refer to the [Read digital inputs](read-digital-inputs.md) and [Control digital outputs](control-digital-outputs.md) articles to use these lines in Bonsai.
To connect an external quadrature encoder (both v1.1 and v2.x):
-1. Connect the Breakout board to port **P2** with an RJ45 cable. The quadrature counter is only available on this port.
+1. Connect the Breakout to port **P2** with an RJ45 cable. The quadrature counter is only available on this port.
2. Wire the encoder's **A** channel to the **DI** terminal. Both channels must be 5 V logic.
3. Wire the encoder's **B** channel to the **DIO** terminal.
4. Wire the encoder's ground to a **GND** terminal.
@@ -227,23 +227,23 @@ To connect an external quadrature encoder (both v1.1 and v2.x):
7. Refer to the [Track rotary encoder](track-rotary-encoder.md) article to read the encoder in Bonsai. If the count runs in the opposite direction to the rotation, swap the **A** and **B** wires.
To control valves for reward delivery (v1.1 only):
-1. Connect the [Breakout](./peripherals/breakout.md) board to port **P0**, **P1**, or **P2** with an RJ45 cable.
+1. Connect the [Breakout](./peripherals/breakout.md) to port **P0**, **P1**, or **P2** with an RJ45 cable.
2. Wire a 12 V solenoid valve between the **+12V** and **SUP_RTN** terminals.
3. Refer to [Deliver rewards on poke](control-poke.md#deliver-rewards-on-poke) to pulse the valve line in Bonsai.
To stream the serial timestamp (v2.x only):
-1. Connect the board to **P2**, the timestamp stream can only be transmitted on this port.
+1. Connect the Breakout to **P2**, the timestamp stream can only be transmitted on this port.
2. Wire the **TX** terminal to the receiving device's **RX** input or to a logged digital input.
3. Wire a **GND** terminal to the receiver's ground.
-4. Set the Breakout board's logic-level jumper to match the receiver's operating voltage level (3.3 V or 5 V).
+4. Set the logic-level jumper of the Breakout to match the receiver's operating voltage level (3.3 V or 5 V).
5. Refer to the [Transmit serial timestamps](advanced-configuration.md#transmit-serial-timestamps) section to enable the stream in Bonsai.
-# [Harp synchronization](#tab/harpsynchronization)
+# [Harp synchronization](#tab/harp-synchronization)
{width=600}
1. Connect a **CLKOUT** of a Harp clock generator (e.g. the [Harp Timestamp Generator](https://github.com/harp-tech/device.timestampgeneratorgen3)) to the **CLKIN** jack with a stereo plug cable.
-2. The Behavior device adopts the generator's clock automatically. To verify the connection, check that the **STATE** LEDs of the connected boards blink simultaneously.
+2. The Behavior device adopts the generator's clock automatically. To verify the connection, check that the **STATE** LEDs of the connected devices blink simultaneously.
3. Refer to the [Harp synchronization clock](https://harp-tech.org/protocol/SynchronizationClock.html) documentation for how devices synchronize.
---
diff --git a/docs/articles/read-digital-inputs.md b/docs/articles/read-digital-inputs.md
index 6a96f42f..bee101b2 100644
--- a/docs/articles/read-digital-inputs.md
+++ b/docs/articles/read-digital-inputs.md
@@ -1,6 +1,6 @@
# Read digital inputs
-The Behavior device has one digital input that is accessible without extra hardware: **DI3** on the **Input** connector. Each poke port also carries a general-purpose **DI** line, and a **DIO** line that can be used as an active-low digital input. Refer to the [connections](./ports-connections.md?tabs=digitalinput#connections) article to set up the hardware connection on **DI3** or **DIO0**, which we will use for the rest of these examples.
+The Behavior device has one digital input that is accessible without extra hardware: **DI3** on the **Input** connector. Each poke port also carries a general-purpose **DI** line, and a **DIO** line that can be used as an active-low digital input. Refer to the [connections](./ports-connections.md?tabs=digital-input#connections) article to set up the hardware connection on **DI3** or **DIO0**, which we will use for the rest of these examples.
This article covers how to visualize the digital input events and read the poke port **DIO** lines as a digital input in Bonsai.
@@ -11,12 +11,12 @@ The complete workflow is shown below. Copy and paste it into Bonsai to get start
:::
> [!NOTE]
-> If you need more digital inputs, the [Breakout](./peripherals/breakout.md) board provides access to the poke port input lines through screw terminals.
+> If you need more digital inputs, the [Breakout](./peripherals/breakout.md) provides access to the poke port input lines through screw terminals.
## Visualize digital input events
-The Behavior device broadcasts changes on its digital input lines as [`DigitalInputState`] event messages. In addition to **DI3**, this register also reports events from the **DI** lines on the poke ports **P0**–**P2** (represented as `DIPort0`–`DIPort2` in Bonsai), such as [poke events](control-poke.md) from the [Mice Poke](./peripherals/micepoke.md) peripheral or other digital inputs connected to the [Breakout](./peripherals/breakout.md) board. The workflow below subscribes, parses, and displays them in a visualizer window.
+The Behavior device broadcasts changes on its digital input lines as [`DigitalInputState`] event messages. In addition to **DI3**, this register also reports events from the **DI** lines on the poke ports **P0**–**P2** (represented as `DIPort0`–`DIPort2` in Bonsai), such as [poke events](control-poke.md) from the [Mice Poke](./peripherals/mice-poke.md) peripheral or other digital inputs connected to the [Breakout](./peripherals/breakout.md). The workflow below subscribes, parses, and displays them in a visualizer window.
:::workflow

diff --git a/docs/articles/toc.yml b/docs/articles/toc.yml
index 07950d4e..889e6126 100644
--- a/docs/articles/toc.yml
+++ b/docs/articles/toc.yml
@@ -1,13 +1,13 @@
- name: Introduction
- href: ../index.md
- name: Specs
-- href: behavior.md
+- href: device.md
- name: Peripherals
href: ./peripherals/toc.yml
- name: Getting started
- href: ports-connections.md
- href: installation.md
-- href: behavior-app.md
+- href: app.md
- href: bonsai.md
- name: Examples
- href: how-the-examples-work.md
diff --git a/docs/articles/track-rotary-encoder.md b/docs/articles/track-rotary-encoder.md
index 4e40bd96..2581500f 100644
--- a/docs/articles/track-rotary-encoder.md
+++ b/docs/articles/track-rotary-encoder.md
@@ -1,6 +1,6 @@
# Track rotary encoder
-The **P2** poke port of the Behavior device has an encoder mode that allows it to read a quadrature encoder (e.g. to track the rotation of a treadmill). As the encoder rotates, it generates counts that increase or decrease depending on the direction of rotation, allowing relative position to be tracked. Refer to the [connections](./ports-connections.md?tabs=encoder#connections) article to set up either the [Rotary Encoder](./peripherals/rotaryencoder.md) peripheral or attach an external quadrature encoder to the [Breakout](./peripherals/breakout.md) board.
+The **P2** poke port of the Behavior device has an encoder mode that allows it to read a quadrature encoder (e.g. to track the rotation of a treadmill). As the encoder rotates, it generates counts that increase or decrease depending on the direction of rotation, allowing relative position to be tracked. Refer to the [connections](./ports-connections.md?tabs=rotary-encoder#connections) article to set up either the [Rotary Encoder](./peripherals/rotary-encoder.md) peripheral or attach an external quadrature encoder to the [Breakout](./peripherals/breakout.md).
This article covers enabling the encoder mode, visualizing the reading, and resetting the count.
diff --git a/docs/harp-docfx b/docs/harp-docfx
index ddd2ef50..3ac53f4c 160000
--- a/docs/harp-docfx
+++ b/docs/harp-docfx
@@ -1 +1 @@
-Subproject commit ddd2ef50f477b4e2ff53e0733f4ca0d7ed85f8a4
+Subproject commit 3ac53f4c07fc5241243e670aa9041dea413f44f1
diff --git a/docs/images/behavior-board.jpg b/docs/images/behavior-device.jpg
similarity index 100%
rename from docs/images/behavior-board.jpg
rename to docs/images/behavior-device.jpg
diff --git a/docs/images/pcb.png b/docs/images/pcb.png
deleted file mode 100644
index d898e612..00000000
Binary files a/docs/images/pcb.png and /dev/null differ
diff --git a/docs/includes/version-footer.md b/docs/includes/version-footer.md
index 2c3fdbdc..eaf215a1 100644
--- a/docs/includes/version-footer.md
+++ b/docs/includes/version-footer.md
@@ -2,7 +2,4 @@
---
-Last updated with:
-**Hardware** v2.1
-**Firmware** v3.3
-**Bonsai Package** v0.2
+Documentation for release v3.4.0
diff --git a/docs/index.md b/docs/index.md
index 900aa845..cacc498d 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,6 +1,6 @@
# Overview
-The Harp [Behavior](articles/behavior.md) device is a multi-purpose data acquisition and control system for behavioral neuroscience experiments.
+The Harp [Behavior](articles/device.md) device is a multi-purpose data acquisition and control system for behavioral neuroscience experiments.

diff --git a/software/dotnet/Harp.Behavior.App/README.md b/software/dotnet/Harp.Behavior.App/README.md
index 15dd3397..d7117640 100644
--- a/software/dotnet/Harp.Behavior.App/README.md
+++ b/software/dotnet/Harp.Behavior.App/README.md
@@ -6,7 +6,7 @@ As with other Harp devices, the Behavior device can also be used from [Bonsai](h
## How to Use
-The app is distributed as a .NET tool. Installing it requires the [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0):
+The app is distributed as a .NET tool. Installing it requires the [.NET SDK](https://dotnet.microsoft.com/download), version 8 or later:
```text
dotnet tool install -g Harp.Behavior.App
@@ -34,8 +34,8 @@ sudo usermod -a -G dialout
## Additional Documentation
-For additional documentation and examples, refer to the [official Harp documentation](https://harp-tech.org/device.behavior).
+For additional documentation and examples, refer to the [official Harp Behavior documentation](https://harp-tech.org/device.behavior).
## Feedback & Contributing
-`Harp.Behavior.App` is released as open-source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/harp-tech/device.behavior).
+`Harp.Behavior.App` is released as open source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/harp-tech/device.behavior).
diff --git a/software/dotnet/Harp.Behavior/Properties/launchSettings.json b/software/dotnet/Harp.Behavior/Properties/launchSettings.json
index b48bcfa9..520ca63c 100644
--- a/software/dotnet/Harp.Behavior/Properties/launchSettings.json
+++ b/software/dotnet/Harp.Behavior/Properties/launchSettings.json
@@ -2,7 +2,7 @@
"profiles": {
"Bonsai": {
"commandName": "Executable",
- "executablePath": "$(registry:HKEY_CURRENT_USER\\Software\\Bonsai Foundation\\Bonsai@InstallDir)Bonsai.exe",
+ "executablePath": "bonsai",
"commandLineArgs": "--lib:\"$(TargetDir).\"",
"nativeDebugging": true
}
diff --git a/software/dotnet/Harp.Behavior/README.md b/software/dotnet/Harp.Behavior/README.md
index cf7a3b3c..ddcfd87c 100644
--- a/software/dotnet/Harp.Behavior/README.md
+++ b/software/dotnet/Harp.Behavior/README.md
@@ -1,6 +1,6 @@
## About
-`Harp.Behavior` provides an asynchronous API and reactive operators for data acquisition and control of [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) devices.
+`Harp.Behavior` provides an asynchronous API and reactive operators for data acquisition and control of [Harp Behavior](https://harp-tech.org/device.behavior) devices.
## How to Use
@@ -19,8 +19,8 @@ Console.WriteLine($"{deviceName} WhoAmI: {whoAmI} Timestamp (s): {timestamp}");
## Additional Documentation
-For additional documentation and examples, refer to the [official Harp documentation](https://harp-tech.org/api/Harp.Behavior.html).
+For additional documentation and examples, refer to the [official Harp Behavior documentation](https://harp-tech.org/device.behavior).
## Feedback & Contributing
-`Harp.Behavior` is released as open-source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/harp-tech/device.behavior).
\ No newline at end of file
+`Harp.Behavior` is released as open source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/harp-tech/device.behavior).
\ No newline at end of file