Skip to content

Commit d51c842

Browse files
committed
Review operators article
1 parent 190ebbb commit d51c842

6 files changed

Lines changed: 113 additions & 49 deletions

File tree

articles/operators.md

Lines changed: 74 additions & 36 deletions
Large diffs are not rendered by default.

workflows/device-pattern.bonsai

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<WorkflowBuilder Version="2.8.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns:rx="clr-namespace:Bonsai.Reactive;assembly=Bonsai.Core"
5+
xmlns:harp="clr-namespace:Bonsai.Harp;assembly=Bonsai.Harp"
6+
xmlns="https://bonsai-rx.org/2018/workflow">
7+
<Workflow>
8+
<Nodes>
9+
<Expression xsi:type="rx:BehaviorSubject" TypeArguments="harp:HarpMessage">
10+
<rx:Name>DeviceCommands</rx:Name>
11+
</Expression>
12+
<Expression xsi:type="Combinator">
13+
<Combinator xsi:type="harp:Device">
14+
<harp:OperationMode>Active</harp:OperationMode>
15+
<harp:OperationLed>On</harp:OperationLed>
16+
<harp:DumpRegisters>true</harp:DumpRegisters>
17+
<harp:VisualIndicators>On</harp:VisualIndicators>
18+
<harp:Heartbeat>Disabled</harp:Heartbeat>
19+
<harp:IgnoreErrors>false</harp:IgnoreErrors>
20+
<harp:PortName>COMx</harp:PortName>
21+
</Combinator>
22+
</Expression>
23+
<Expression xsi:type="rx:PublishSubject">
24+
<Name>DeviceEvents</Name>
25+
</Expression>
26+
</Nodes>
27+
<Edges>
28+
<Edge From="0" To="1" Label="Source1" />
29+
<Edge From="1" To="2" Label="Source1" />
30+
</Edges>
31+
</Workflow>
32+
</WorkflowBuilder>

workflows/device-pattern.svg

Lines changed: 3 additions & 0 deletions
Loading

workflows/filter-message.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<WorkflowBuilder Version="2.8.1"
2+
<WorkflowBuilder Version="2.8.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xmlns:harp="clr-namespace:Bonsai.Harp;assembly=Bonsai.Harp"
55
xmlns="https://bonsai-rx.org/2018/workflow">
66
<Workflow>
77
<Nodes>
8-
<Expression xsi:type="harp:CreateMessage">
9-
<harp:MessageType>Write</harp:MessageType>
10-
<harp:Payload xsi:type="harp:CreateMessagePayload">
11-
<harp:Address>32</harp:Address>
12-
<harp:PayloadType>U8</harp:PayloadType>
13-
<harp:Value>0</harp:Value>
14-
</harp:Payload>
15-
</Expression>
168
<Expression xsi:type="Combinator">
179
<Combinator xsi:type="harp:Device">
1810
<harp:OperationMode>Active</harp:OperationMode>
@@ -31,7 +23,6 @@
3123
</Nodes>
3224
<Edges>
3325
<Edge From="0" To="1" Label="Source1" />
34-
<Edge From="1" To="2" Label="Source1" />
3526
</Edges>
3627
</Workflow>
3728
</WorkflowBuilder>

workflows/filter-register.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)