LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pass cluster into subvi unbundle

I'm trying to un-spaghetti my code by combining subgroups of data and constants into clusters.  I cannot figure out how to pass a cluster into a subvi, however.  I try placing a cluster control in the subvi, assigning it an input terminal and then unbundling, but it will not let me have more than 2 terminals on the unbundle.  Help. 
0 Kudos
Message 1 of 4
(3,015 Views)

The technique I use is as follows:

In your main VI where you built your cluster create an indicator of it (if you haven't already done so). Ctrl and right drag it to create a copy. Drag the indicator into the subvi's block diagram. Right click this indicator and select change to control. On the front panel assign this control to a space on your connector pane.

Hope this helps

Now Using LabVIEW 2019SP1 and TestStand 2019
Message 2 of 4
(3,000 Views)
that did it.  Thanks so much.  Why was I unable to find help for that outside of the forum?  I honestly tried searcing the forum and the program help. 
0 Kudos
Message 3 of 4
(2,993 Views)

I would seriously consider making all of these clusters a typdef.  This will give your code an extra degree of maintainability.  Also give the fields and clusters meaningful names. 

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 4
(2,988 Views)