Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: dglavastormHi - not sure if I'm doing something wrong, but i'm trying to add some sort of switch into my graph that outputs 1 of 2 inputs based on whether they run.
The Bypass and Switch should do this from what I understand from the description, but they aren't waiting for the second input to complete and as such just passing along the first to reach it.
Am I doing something wrong ? This may not be the best option for what I'm trying to achieve.
Full description
An X-Ref node checks for new data and outputs either existing data on the middle pin or the filename of the new data on the Right pin.
The right pin feeds into an Acquisition node which brings in new data and Cats it to the existing data.
What I'm trying to achieve is :
With the X-Ref node, if there is no new data (right pin has 0 output) then the existing data (middle pin) is passed along, but if there is new data (right pin outputs a filename) then the graph holds until the new data is imported, then passes this new combined dataset along instead of the middle pin's output.
Because it takes time to import the data, both the Bypass and Switch are simply taking the middle pin input every time.
I can't clock the right pin import node to the Bypass either, because if there is 0 data then it errors and the Bypass won't run.
Hope that makes sense
Edit - I have solved my issue using the Metacheck node with ClockWithPropagate for 0 data, but the confusion around Bypass still remains.
Using the Bypass nodes in two parts of my graph - at one point it simply takes the first lot of data that arrives and doesn't wait for the second, then at another point it waits for the second input to arrive.
What triggers this wait/don't wait ?