bna08 Posted December 15, 2022 Report Share Posted December 15, 2022 (edited) I have multiple cases to be executed in a case structure as a result of user events in my application in a producer/consumer pattern. In one of the cases a new reference is created that I will only need once more in another case of the given case structure. All other cases have no need for that reference. However, if those other cases are invoked (e.g. Grab Frame, Stop Acquisition), a wire has to be dragged through the case from input shift register via case structure tunnels to output shift register so that it does not become invalid (Use Default If Unwired) and can be used once the case that actually needs the reference is invoked. This results in unnecessary wires (and often more of them) in other cases of the structure that pollute the diagram and have to be there just to carry the reference for any other case. Is there a way I could reduce this "pollution" and avoid dragging the wire through each case where it is not used at all? Here is an example: INIT VI generates a reference that I will need when calling the OPEN CAMERA VI so I pass it to next iterations via Shift Register: OPEN camera VI that requires the reference from INIT case: Other cases, such as Open Camera or Grab Frame have no need for this reference, yet it has to be dragged through these cases as well in order to pass the reference if I want to keep the reference value for future use: I could select Use Default If Unwired in these cases and not use the wire at all, however, that will set the reference value to null and I won't be able to use it anymore. Is there a way to solve this without dragging the wires in all cases of the structure? Edited December 15, 2022 by bna08 Quote Link to comment
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.