LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

View Cluster Control/Indicator as Icon on Front Panel (sub VI's)

I make a lot of use of clusters to pass data into and out of sub vi's.  I keep everything typedef'd and the clusters can often grow to be rather large on the front panel which makes navigating the front panel quite difficult.  I usually have maybe 2 or 3 other controls and indicators that are not within the cluster.

 

Is it possible to view the cluster as an icon in a similar way to the block diagram?

0 Kudos
Message 1 of 7
(3,029 Views)

No.

Apart from dragging them offscreen, turning them invisible or placing them on a separate tab. Do you need to have them on the front panel at all, or can the wire keep the info and you only show selected pieces?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 7
(3,013 Views)

Well I need to be able to connect to them as inputs and outputs to the sub vi.  One way around would be to use references to the variable but that introduces overhead in the block diagran to reference and dereference etc.

 

I'd like to know how other people deal with these clusters.  Maybe they don't use them and my programming style isn't good?

 

I think it's the same in principal to using a structure in C.

0 Kudos
Message 3 of 7
(3,003 Views)

Generally, the front panels of those subVI's are never meant to be seen, so just arranging things neatly and then not worrying about it is what I do.

 

You could also make sure that Size to Fit is not checked on the cluster and then shrink the boundary in effectively hiding a lot of the elements.  But I don't think that is a good idea.

0 Kudos
Message 4 of 7
(2,987 Views)

Turn your cluster into an object?

Omar
Message 5 of 7
(2,979 Views)

@DNicholls wrote:

 

I'd like to know how other people deal with these clusters.  Maybe they don't use them and my programming style isn't good?

 

 


I frequently have the same issue. I use tab controls. Often.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 6 of 7
(2,963 Views)

Hello DNichols,

 

I recommend placing the cluster(s) in question partway off-screen, with the label displayed.  If you really need to minimize the footprint of the cluster front panel object, set AutoSizing to "None" via the right-click menu and resize as needed, but keep in mind that the FP object is now more-or-less useless to future developers except for ease of clicking to link to the connector pane.  Since you're type-defining everything, accessing or viewing the contents of the cluster might not matter much, though.

 

Redefining your architecture is probably not a priority right now, but you might also want to consider using classes in the future, as others have suggested.

 

Regards, 

Tom L.
0 Kudos
Message 7 of 7
(2,950 Views)