From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-07-2022 03:48 AM
hello everyone,
I want to connect two blocks from different subvis how can i do it?
thank you in advance
08-07-2022 03:53 AM
08-07-2022 04:02 AM
hahahah.. i know that but i have value which is in subvi 1st that i want to give as input for a block in subvi 2. how can i do it?
thank you
08-07-2022 05:07 AM
Can you attach your code in order to allow us a better comprehension of your needs?
08-07-2022 05:20 AM
08-07-2022 10:09 AM
What are "two blocks from different subVIs"? (Wording does not make any sense! Some beginners call subVIs "blocks", but you obviously talk about two different things. Completely unclear!)
Can you attach some example code? Make sure you include (1) the toplevel VI, (2) the two subVIs, and (3) whatever you call "blocks".
08-07-2022 11:42 AM
In LabVIEW, there are (to a first approximation -- exceptions are everywhere!) two types of VIs that differ in what "Inputs" and "Outputs" mean.
Bob Schor
08-08-2022 08:11 AM
thank you for explaining. i have 8 inputs and 5 outputs for every subvi. is it possible to connect?
08-08-2022 09:01 AM
08-08-2022 09:04 AM
@newmemeber123 wrote:
thank you for explaining. i have 8 inputs and 5 outputs for every subvi. is it possible to connect?
Yes, but it sounds like a good idea to bundle some or all of them into a cluster and use that. Just like Error in and out are 3 element clusters, you can create clusters and use those wires as inputs and outputs. Make the clusters a Type Def (with a logical name and icon) and use that and any changes you need to do will propagate to all automatically.