Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit ef49931

Browse files
committed
Add automated workflow export scripts
1 parent e26138f commit ef49931

File tree

5 files changed

+41
-1
lines changed

5 files changed

+41
-1
lines changed

build.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Build project
2+
$libPath = ".\src\onix-refactor\OpenEphys.Onix\"
3+
dotnet build $libPath --configuration Release
4+
5+
# Export workflow vectors
6+
$libPath = Join-Path $libPath "OpenEphys.Onix\bin\x64\Release\net472"
7+
.\docfx-tools\modules\Export-Image.ps1 -bootstrapperPath .\.bonsai\Bonsai.exe $libPath
8+
dotnet docfx @args

index.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,11 @@
22

33
`OpenEphys.Onix` is a [Bonsai](https://bonsai-rx.org/) interface for [Open Neuro Interface](https://github.com/open-ephys/ONI)-compliant hardware. All device initialization, configuration, and streaming functionality is exposed via reactive operators.
44

5-
To install `OpenEphys.Onix` use the Bonsai package manager and search for the **OpenEphys.Onix** package.
5+
To install `OpenEphys.Onix` use the Bonsai package manager and search for the **OpenEphys.Onix** package.
6+
7+
## Initialize the ONI Context
8+
The [`CreateContext`](xref:OpenEphys.Onix.CreateContext) operator initializes the acquisition context, and it should be the first node you add to your workflow as it provides access to the hardware device table for all other configuration operators.
9+
10+
:::workflow
11+
![CreateContext](~/workflows/create-context.bonsai)
12+
:::

template/public/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "workflow.css";

template/public/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import WorkflowContainer from "./workflow.js"
2+
3+
export default {
4+
start: () => {
5+
WorkflowContainer.init();
6+
}
7+
}

workflows/create-context.bonsai

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<WorkflowBuilder Version="2.8.2"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns:onix="clr-namespace:OpenEphys.Onix;assembly=OpenEphys.Onix"
5+
xmlns="https://bonsai-rx.org/2018/workflow">
6+
<Workflow>
7+
<Nodes>
8+
<Expression xsi:type="Combinator">
9+
<Combinator xsi:type="onix:CreateContext">
10+
<onix:Driver>riffa</onix:Driver>
11+
<onix:Index>0</onix:Index>
12+
</Combinator>
13+
</Expression>
14+
</Nodes>
15+
<Edges />
16+
</Workflow>
17+
</WorkflowBuilder>

0 commit comments

Comments
 (0)