Skip to content

Commit

Permalink
Ensure LUT has been loaded before reference the object
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-f-cruz committed Aug 14, 2024
1 parent fd29ade commit 47985f5
Showing 1 changed file with 53 additions and 45 deletions.
98 changes: 53 additions & 45 deletions src/main.bonsai
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
xmlns:p12="clr-namespace:AllenNeuralDynamics.Core.Design;assembly=AllenNeuralDynamics.Core.Design"
xmlns:bv="clr-namespace:BonVision;assembly=BonVision"
xmlns:p13="clr-namespace:AllenNeuralDynamics.LicketySplit;assembly=AllenNeuralDynamics.LicketySplit"
xmlns:cv="clr-namespace:Bonsai.Vision;assembly=Bonsai.Vision"
xmlns:p14="clr-namespace:;assembly=Extensions"
xmlns:cv="clr-namespace:Bonsai.Vision;assembly=Bonsai.Vision"
xmlns:p15="clr-namespace:OpenCV.Net;assembly=OpenCV.Net"
xmlns:p16="clr-namespace:AllenNeuralDynamics.HarpUtils;assembly=AllenNeuralDynamics.HarpUtils"
xmlns:gui="clr-namespace:Bonsai.Gui;assembly=Bonsai.Gui"
Expand Down Expand Up @@ -2659,6 +2659,45 @@
<Expression xsi:type="rx:AsyncSubject">
<Name>settings</Name>
</Expression>
<Expression xsi:type="SubscribeSubject">
<Name>HarpLoadCellsEvents</Name>
</Expression>
<Expression xsi:type="p4:FilterRegister">
<harp:FilterType>Include</harp:FilterType>
<harp:Register xsi:type="p4:LoadCellData" />
</Expression>
<Expression xsi:type="harp:Parse">
<harp:Register xsi:type="harp:ParseMessagePayload">
<harp:PayloadType>TimestampedS16</harp:PayloadType>
<harp:IsArray>true</harp:IsArray>
</harp:Register>
</Expression>
<Expression xsi:type="SubscribeSubject">
<Name>settings</Name>
</Expression>
<Expression xsi:type="PropertyMapping">
<PropertyMappings>
<Property Name="ForceOperationControl" />
</PropertyMappings>
</Expression>
<Expression xsi:type="SubscribeSubject">
<Name>LUT</Name>
</Expression>
<Expression xsi:type="PropertyMapping">
<PropertyMappings>
<Property Name="LookUpTable" />
</PropertyMappings>
</Expression>
<Expression xsi:type="Combinator">
<Combinator xsi:type="p14:ParseForce" />
</Expression>
<Expression xsi:type="SubscribeSubject">
<Name>LUT</Name>
</Expression>
<Expression xsi:type="Combinator">
<Combinator xsi:type="rx:SubscribeWhen" />
</Expression>
<Expression xsi:type="WorkflowOutput" />
<Expression xsi:type="SubscribeSubject">
<Name>settings</Name>
</Expression>
Expand Down Expand Up @@ -2745,61 +2784,30 @@
<Expression xsi:type="rx:AsyncSubject">
<Name>LUT</Name>
</Expression>
<Expression xsi:type="SubscribeSubject">
<Name>HarpLoadCellsEvents</Name>
</Expression>
<Expression xsi:type="p4:FilterRegister">
<harp:FilterType>Include</harp:FilterType>
<harp:Register xsi:type="p4:LoadCellData" />
</Expression>
<Expression xsi:type="harp:Parse">
<harp:Register xsi:type="harp:ParseMessagePayload">
<harp:PayloadType>TimestampedS16</harp:PayloadType>
<harp:IsArray>true</harp:IsArray>
</harp:Register>
</Expression>
<Expression xsi:type="SubscribeSubject">
<Name>settings</Name>
</Expression>
<Expression xsi:type="PropertyMapping">
<PropertyMappings>
<Property Name="ForceOperationControl" />
</PropertyMappings>
</Expression>
<Expression xsi:type="SubscribeSubject">
<Name>LUT</Name>
</Expression>
<Expression xsi:type="PropertyMapping">
<PropertyMappings>
<Property Name="LookUpTable" />
</PropertyMappings>
</Expression>
<Expression xsi:type="Combinator">
<Combinator xsi:type="p14:ParseForce" />
</Expression>
<Expression xsi:type="WorkflowOutput" />
</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" />
<Edge From="5" To="6" Label="Source1" />
<Edge From="6" To="11" Label="Source1" />
<Edge From="7" To="8" Label="Source1" />
<Edge From="5" To="10" Label="Source1" />
<Edge From="6" To="7" Label="Source1" />
<Edge From="7" To="10" Label="Source2" />
<Edge From="8" To="9" Label="Source1" />
<Edge From="9" To="10" Label="Source1" />
<Edge From="10" To="11" Label="Source2" />
<Edge From="11" To="12" Label="Source1" />
<Edge From="9" To="10" Label="Source3" />
<Edge From="10" To="12" Label="Source1" />
<Edge From="11" To="12" Label="Source2" />
<Edge From="12" To="13" Label="Source1" />
<Edge From="14" To="15" Label="Source1" />
<Edge From="15" To="16" Label="Source1" />
<Edge From="16" To="21" Label="Source1" />
<Edge From="17" To="18" Label="Source1" />
<Edge From="18" To="21" Label="Source2" />
<Edge From="16" To="17" Label="Source1" />
<Edge From="17" To="22" Label="Source1" />
<Edge From="18" To="19" Label="Source1" />
<Edge From="19" To="20" Label="Source1" />
<Edge From="20" To="21" Label="Source3" />
<Edge From="21" To="22" Label="Source1" />
<Edge From="20" To="21" Label="Source1" />
<Edge From="21" To="22" Label="Source2" />
<Edge From="22" To="23" Label="Source1" />
<Edge From="23" To="24" Label="Source1" />
</Edges>
</Workflow>
</Expression>
Expand Down

0 comments on commit 47985f5

Please sign in to comment.