-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Electrical/Optical Stimulator - Add ScalarBuffer to BreakoutAnalogOutput - Display workflows in templates
- Loading branch information
Showing
9 changed files
with
176 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
uid: device-opticalstimulator | ||
title: Headstage64OpticalStimulator | ||
isGuide: true | ||
isDevice: true | ||
device: OpticalStimulator | ||
headstage: Headstage64 | ||
workflow: true | ||
workflow_file: ~/workflows/devices/OpticalStimulator.bonsai | ||
--- | ||
|
||
<br> | ||
|
||
## Send Trigger | ||
|
||
While the workflow is running, pressing the middle button on the mouse will send a trigger delivering the stimulation waveform that is configured. The `MouseButtonDown` node can be found in the `Bonsai.Windows.Input` package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<WorkflowBuilder Version="2.8.5" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:onix="clr-namespace:OpenEphys.Onix;assembly=OpenEphys.Onix" | ||
xmlns:wie="clr-namespace:Bonsai.Windows.Input;assembly=Bonsai.Windows.Input" | ||
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> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="onix:ConfigureHeadstage64"> | ||
<onix:Name>Headstage64</onix:Name> | ||
<onix:Rhd2164> | ||
<onix:DeviceName>Headstage64/Rhd2164</onix:DeviceName> | ||
<onix:DeviceAddress>256</onix:DeviceAddress> | ||
<onix:Enable>true</onix:Enable> | ||
<onix:DspCutoff>Dsp146mHz</onix:DspCutoff> | ||
<onix:AnalogLowCutoff>Low100mHz</onix:AnalogLowCutoff> | ||
<onix:AnalogHighCutoff>High10000Hz</onix:AnalogHighCutoff> | ||
</onix:Rhd2164> | ||
<onix:Bno055> | ||
<onix:DeviceName>Headstage64/Bno055</onix:DeviceName> | ||
<onix:DeviceAddress>257</onix:DeviceAddress> | ||
<onix:Enable>true</onix:Enable> | ||
</onix:Bno055> | ||
<onix:TS4231> | ||
<onix:DeviceName>Headstage64/TS4231</onix:DeviceName> | ||
<onix:DeviceAddress>258</onix:DeviceAddress> | ||
<onix:Enable>false</onix:Enable> | ||
</onix:TS4231> | ||
<onix:ElectricalStimulator> | ||
<onix:DeviceName>Headstage64/Headstage64ElectricalStimulator</onix:DeviceName> | ||
<onix:DeviceAddress>259</onix:DeviceAddress> | ||
</onix:ElectricalStimulator> | ||
<onix:OpticalStimulator> | ||
<onix:DeviceName>Headstage64/Headstage64OpticalStimulator</onix:DeviceName> | ||
<onix:DeviceAddress>260</onix:DeviceAddress> | ||
</onix:OpticalStimulator> | ||
<onix:Port>PortA</onix:Port> | ||
<onix:PortVoltage xsi:nil="true" /> | ||
</Combinator> | ||
</Expression> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="onix:StartAcquisition"> | ||
<onix:ReadSize>2048</onix:ReadSize> | ||
<onix:WriteSize>2048</onix:WriteSize> | ||
</Combinator> | ||
</Expression> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="wie:MouseButtonDown"> | ||
<wie:Filter>Middle</wie:Filter> | ||
</Combinator> | ||
</Expression> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="BooleanProperty"> | ||
<Value>true</Value> | ||
</Combinator> | ||
</Expression> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="onix:Headstage64OpticalStimulatorTrigger"> | ||
<onix:DeviceName>Headstage64/Headstage64OpticalStimulator</onix:DeviceName> | ||
<onix:Enable>true</onix:Enable> | ||
<onix:Delay>0</onix:Delay> | ||
<onix:MaxCurrent>100</onix:MaxCurrent> | ||
<onix:ChannelOneCurrent>100</onix:ChannelOneCurrent> | ||
<onix:ChannelTwoCurrent>0</onix:ChannelTwoCurrent> | ||
<onix:PulseDuration>5</onix:PulseDuration> | ||
<onix:PulsesPerSecond>50</onix:PulsesPerSecond> | ||
<onix:PulsesPerBurst>20</onix:PulsesPerBurst> | ||
<onix:InterBurstInterval>0</onix:InterBurstInterval> | ||
<onix:BurstsPerTrain>1</onix:BurstsPerTrain> | ||
</Combinator> | ||
</Expression> | ||
</Nodes> | ||
<Edges> | ||
<Edge From="0" To="1" Label="Source1" /> | ||
<Edge From="1" To="2" Label="Source1" /> | ||
<Edge From="3" To="4" Label="Source1" /> | ||
<Edge From="4" To="5" Label="Source1" /> | ||
</Edges> | ||
</Workflow> | ||
</WorkflowBuilder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<WorkflowBuilder Version="2.8.5" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:dsp="clr-namespace:Bonsai.Dsp;assembly=Bonsai.Dsp" | ||
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="dsp:ScalarBuffer"> | ||
<dsp:Size> | ||
<dsp:Width>12</dsp:Width> | ||
<dsp:Height>1</dsp:Height> | ||
</dsp:Size> | ||
<dsp:Depth>F32</dsp:Depth> | ||
<dsp:Channels>1</dsp:Channels> | ||
<dsp:Value> | ||
<dsp:Val0>1</dsp:Val0> | ||
<dsp:Val1>0</dsp:Val1> | ||
<dsp:Val2>0</dsp:Val2> | ||
<dsp:Val3>0</dsp:Val3> | ||
</dsp:Value> | ||
</Combinator> | ||
</Expression> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="onix:BreakoutAnalogOutput"> | ||
<onix:DataType>S16</onix:DataType> | ||
<onix:DataType>Volts</onix:DataType> | ||
</Combinator> | ||
</Expression> | ||
</Nodes> | ||
<Edges /> | ||
<Edges> | ||
<Edge From="0" To="1" Label="Source1" /> | ||
</Edges> | ||
</Workflow> | ||
</WorkflowBuilder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters