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

Commit

Permalink
Add automated workflow export scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed May 24, 2024
1 parent e26138f commit ef49931
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
8 changes: 8 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Build project
$libPath = ".\src\onix-refactor\OpenEphys.Onix\"
dotnet build $libPath --configuration Release

# Export workflow vectors
$libPath = Join-Path $libPath "OpenEphys.Onix\bin\x64\Release\net472"
.\docfx-tools\modules\Export-Image.ps1 -bootstrapperPath .\.bonsai\Bonsai.exe $libPath
dotnet docfx @args
9 changes: 8 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@

`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.

To install `OpenEphys.Onix` use the Bonsai package manager and search for the **OpenEphys.Onix** package.
To install `OpenEphys.Onix` use the Bonsai package manager and search for the **OpenEphys.Onix** package.

## Initialize the ONI Context
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.

:::workflow
![CreateContext](~/workflows/create-context.bonsai)
:::
1 change: 1 addition & 0 deletions template/public/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "workflow.css";
7 changes: 7 additions & 0 deletions template/public/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import WorkflowContainer from "./workflow.js"

export default {
start: () => {
WorkflowContainer.init();
}
}
17 changes: 17 additions & 0 deletions workflows/create-context.bonsai
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<WorkflowBuilder Version="2.8.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:onix="clr-namespace:OpenEphys.Onix;assembly=OpenEphys.Onix"
xmlns="https://bonsai-rx.org/2018/workflow">
<Workflow>
<Nodes>
<Expression xsi:type="Combinator">
<Combinator xsi:type="onix:CreateContext">
<onix:Driver>riffa</onix:Driver>
<onix:Index>0</onix:Index>
</Combinator>
</Expression>
</Nodes>
<Edges />
</Workflow>
</WorkflowBuilder>

0 comments on commit ef49931

Please sign in to comment.