Skip to content

Commit

Permalink
Change trigger button from Moon to Triangle (#118)
Browse files Browse the repository at this point in the history
* Change trigger button from Moon to Triangle

* Edit description of workflow to tell users to use triangle or circle buttons other than moon to trigger electrical or optical stimulation
  • Loading branch information
cjsha authored Nov 18, 2024
1 parent b9761e0 commit 6c6a163
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
4 changes: 2 additions & 2 deletions articles/hardware/hs64/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ The example workflow below can by copy/pasted into the Bonsai editor using the c
- Captures orientation data from the Bno055 IMU and saves it to disk.
- Monitors the Headstage64 port status.
- Automatically commutates the tether if there is a proper commutator connection.
- Applies electrical stimulation triggered by pressing the breakout board's key.
- Applies optical stimulation triggered by pressing the breakout board's key.
- Applies electrical stimulation triggered by pressing the breakout board's key.
- Applies optical stimulation triggered by pressing the breakout board's key.
- Monitors memory usage data.

::: workflow
Expand Down
2 changes: 1 addition & 1 deletion workflows/hardware/hs64/estim.bonsai
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</Expression>
<Expression xsi:type="HasFlag">
<Operand xsi:type="WorkflowProperty" TypeArguments="onix1:BreakoutButtonState">
<Value>Moon</Value>
<Value>Triangle</Value>
</Operand>
</Expression>
<Expression xsi:type="Combinator">
Expand Down
2 changes: 1 addition & 1 deletion workflows/hardware/hs64/hs64.bonsai
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
</Expression>
<Expression xsi:type="HasFlag">
<Operand xsi:type="WorkflowProperty" TypeArguments="onix1:BreakoutButtonState">
<Value>Moon</Value>
<Value>Triangle</Value>
</Operand>
</Expression>
<Expression xsi:type="Combinator">
Expand Down
28 changes: 25 additions & 3 deletions workflows/hardware/hs64/ostim.bonsai
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,38 @@
<Workflow>
<Nodes>
<Expression xsi:type="Combinator">
<Combinator xsi:type="onix1:MemoryMonitorData">
<onix1:DeviceName>BreakoutBoard/MemoryMonitor</onix1:DeviceName>
<Combinator xsi:type="onix1:DigitalInput">
<onix1:DeviceName>BreakoutBoard/DigitalIO</onix1:DeviceName>
</Combinator>
</Expression>
<Expression xsi:type="MemberSelector">
<Selector>PercentUsed</Selector>
<Selector>Buttons</Selector>
</Expression>
<Expression xsi:type="HasFlag">
<Operand xsi:type="WorkflowProperty" TypeArguments="onix1:BreakoutButtonState">
<Value>Circle</Value>
</Operand>
</Expression>
<Expression xsi:type="Combinator">
<Combinator xsi:type="onix1:Headstage64OpticalStimulatorTrigger">
<onix1:DeviceName>Headstage64/Headstage64OpticalStimulator</onix1:DeviceName>
<onix1:Enable>true</onix1:Enable>
<onix1:Delay>0</onix1:Delay>
<onix1:MaxCurrent>100</onix1:MaxCurrent>
<onix1:ChannelOneCurrent>100</onix1:ChannelOneCurrent>
<onix1:ChannelTwoCurrent>0</onix1:ChannelTwoCurrent>
<onix1:PulseDuration>5</onix1:PulseDuration>
<onix1:PulsesPerSecond>50</onix1:PulsesPerSecond>
<onix1:PulsesPerBurst>20</onix1:PulsesPerBurst>
<onix1:InterBurstInterval>0</onix1:InterBurstInterval>
<onix1:BurstsPerTrain>1</onix1:BurstsPerTrain>
</Combinator>
</Expression>
</Nodes>
<Edges>
<Edge From="0" To="1" Label="Source1" />
<Edge From="1" To="2" Label="Source1" />
<Edge From="2" To="3" Label="Source1" />
</Edges>
</Workflow>
</WorkflowBuilder>

0 comments on commit 6c6a163

Please sign in to comment.