-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from fchampalimaud/JG_harp_examples_completion
PlaySound and ToggleMultipleSteps schematics added + some more minor changes
- Loading branch information
Showing
15 changed files
with
779 additions
and
26 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
114 changes: 114 additions & 0 deletions
114
docs/workflows/BonsaiExamples/GUI/LineGraph/LineGraph.bonsai
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,114 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<WorkflowBuilder Version="2.8.1" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:rx="clr-namespace:Bonsai.Reactive;assembly=Bonsai.Core" | ||
xmlns:num="clr-namespace:Bonsai.Numerics;assembly=Bonsai.Numerics" | ||
xmlns:cv="clr-namespace:Bonsai.Vision;assembly=Bonsai.Vision" | ||
xmlns:zg="clr-namespace:Bonsai.Gui.ZedGraph;assembly=Bonsai.Gui.ZedGraph" | ||
xmlns:viz="clr-namespace:Bonsai.Design.Visualizers;assembly=Bonsai.Design.Visualizers" | ||
xmlns="https://bonsai-rx.org/2018/workflow"> | ||
<Workflow> | ||
<Nodes> | ||
<Expression xsi:type="Annotation"> | ||
<Name>1</Name> | ||
<Text><![CDATA[]]></Text> | ||
</Expression> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="rx:Timer"> | ||
<rx:DueTime>PT0S</rx:DueTime> | ||
<rx:Period>PT1S</rx:Period> | ||
</Combinator> | ||
</Expression> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="num:Sin" /> | ||
</Expression> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="num:Cos" /> | ||
</Expression> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="rx:Zip" /> | ||
</Expression> | ||
<Expression xsi:type="Annotation"> | ||
<Name>2</Name> | ||
<Text><![CDATA[]]></Text> | ||
</Expression> | ||
<Expression xsi:type="InputMapping"> | ||
<PropertyMappings> | ||
<Property Name="X" Selector="Item1" /> | ||
<Property Name="Y" Selector="Item2" /> | ||
</PropertyMappings> | ||
</Expression> | ||
<Expression xsi:type="Combinator"> | ||
<Combinator xsi:type="cv:CreatePoint2d"> | ||
<cv:X>0.79691841536989361</cv:X> | ||
<cv:Y>0.12436683761159277</cv:Y> | ||
</Combinator> | ||
</Expression> | ||
<Expression xsi:type="Annotation"> | ||
<Name>3</Name> | ||
<Text><![CDATA[]]></Text> | ||
</Expression> | ||
<Expression xsi:type="zg:LineGraphBuilder"> | ||
<zg:SymbolType>None</zg:SymbolType> | ||
<zg:LineWidth>3</zg:LineWidth> | ||
<zg:CurveSettings> | ||
<zg:CurveConfiguration> | ||
<zg:Color>Turquoise</zg:Color> | ||
</zg:CurveConfiguration> | ||
</zg:CurveSettings> | ||
<zg:Capacity xsi:nil="true" /> | ||
<zg:XMin xsi:nil="true" /> | ||
<zg:XMax xsi:nil="true" /> | ||
<zg:YMin xsi:nil="true" /> | ||
<zg:YMax xsi:nil="true" /> | ||
</Expression> | ||
<Expression xsi:type="VisualizerMapping" /> | ||
<Expression xsi:type="Annotation"> | ||
<Name>4</Name> | ||
<Text><![CDATA[]]></Text> | ||
</Expression> | ||
<Expression xsi:type="zg:GraphPanelBuilder"> | ||
<zg:ReverseX>false</zg:ReverseX> | ||
<zg:ReverseY>false</zg:ReverseY> | ||
<zg:Span xsi:nil="true" /> | ||
<zg:Capacity xsi:nil="true" /> | ||
<zg:XMin xsi:nil="true" /> | ||
<zg:XMax xsi:nil="true" /> | ||
<zg:YMin xsi:nil="true" /> | ||
<zg:YMax xsi:nil="true" /> | ||
</Expression> | ||
<Expression xsi:type="VisualizerMapping" /> | ||
<Expression xsi:type="Annotation"> | ||
<Name>5</Name> | ||
<Text><![CDATA[]]></Text> | ||
</Expression> | ||
<Expression xsi:type="viz:TableLayoutPanelBuilder"> | ||
<viz:ColumnCount>1</viz:ColumnCount> | ||
<viz:RowCount>1</viz:RowCount> | ||
<viz:ColumnStyles /> | ||
<viz:RowStyles /> | ||
<viz:CellSpans /> | ||
</Expression> | ||
<Expression xsi:type="WorkflowOutput" /> | ||
</Nodes> | ||
<Edges> | ||
<Edge From="0" To="1" Label="Source1" /> | ||
<Edge From="1" To="2" Label="Source1" /> | ||
<Edge From="1" To="3" Label="Source1" /> | ||
<Edge From="2" To="4" Label="Source1" /> | ||
<Edge From="3" To="4" Label="Source2" /> | ||
<Edge From="4" To="6" Label="Source1" /> | ||
<Edge From="5" To="6" Label="Source2" /> | ||
<Edge From="6" To="7" Label="Source1" /> | ||
<Edge From="7" To="9" Label="Source1" /> | ||
<Edge From="8" To="9" Label="Source2" /> | ||
<Edge From="9" To="10" Label="Source1" /> | ||
<Edge From="10" To="12" Label="Source1" /> | ||
<Edge From="11" To="12" Label="Source2" /> | ||
<Edge From="12" To="13" Label="Source1" /> | ||
<Edge From="13" To="15" Label="Source1" /> | ||
<Edge From="14" To="15" Label="Source2" /> | ||
<Edge From="15" To="16" 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# LineGraph | ||
|
||
## Summary | ||
This example demonstrates how to use the LineGraph GUI element to display real-time random data. | ||
|
||
## Workflow | ||
:::workflow | ||
 | ||
::: | ||
|
||
## Details | ||
1. Each second both the sine and cosine are calculated and zipped. | ||
2. The sine and cosine are mapped into the X and Y coordinates of a Point2d object. This is the object that must be input in the LineGraph. | ||
3. The LineGraph node responsible for the real-time visualizations. | ||
4. The LineGraph is mapped into a GraphPanel so that the settings from the LineGraph node are applied. | ||
5. Finally, the GraphPanel is mapped into a TableLayoutPanel. | ||
|
||
## Requirements | ||
You need to install the Bonsai.Gui package available in the nuget.org package source. | ||
You need to install the following packages: | ||
- Bonsai - GUI (from nuget.org) | ||
- Bonsai - GUI ZedGraph (from nuget.org) | ||
- Bonsai - Vision Library (from Bonsai Packages) | ||
- Bonsai - Numerics Library (from Bonsai Packages) |
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
2 changes: 1 addition & 1 deletion
2
docs/workflows/HarpExamples/BehaviorBoard/NosePokeDetection/NosePokeDetection.md
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
2 changes: 1 addition & 1 deletion
2
docs/workflows/HarpExamples/BehaviorBoard/NosePokeLEDToggle/NosePokeLEDToggle.md
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
Oops, something went wrong.