Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Branched data flow
Reply to topic
Author Message
EMebane



Joined: Apr 15, 2019
Posts: 124

PostPosted: Apr 17, 2026 10:20 PM    Post subject: Branched data flow

I want to branch the data flow so that based on a choice the user makes with a combo list the signal only propagates down one sequence of subsequent elements and the alternate flow of elements aren't active and don't use up any compute.

e.g., I want to make a design that allows users to switch between 2 or 3 channel coherence. So I have 2 separate coherence elements, one with 2 and the other with 3 inputs. The combo box switches which of them is used before the data flow converges back together after the coherence elements. To optimize the design's compute efficiency I only want one of the coherence elements to actually run. If I use a switch element would the downstream coherence element that is in the inactive flow still continue to run?

As an alternative, I could use an ElementInteractor to disable or stop the unused element. See any problems with that?
jarek



Joined: Oct 22, 2007
Posts: 1087

PostPosted: Apr 18, 2026 2:01 PM    Post subject:

If a branch of a design doesn't receive any data then it doesn't compute. So best way is to just block/open the data flow. The simplest element for that is Valve.
Reply to topic