LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Z.Chen

Group selected controls into a new cluster

Status: New

Currently, I have to move each of the control into the cluster, and then I have to spend a lot of time repairing the broken wires in the BD.

 

Is it possible to just select all the controls you need to bundle into the cluster and create a new cluster.

Labview will need to automatically repair those broken wires.

This should work in both BD and FP.

 

It's just like selecting many stuff on the BD and create SubVI!!

new cluster idea.png

7 Comments
Mark_Yedinak
Trusted Enthusiast

If you don't use them already I suggest you look at typedefs. These are custom controls which have a specific definition. Updates to the typedef are then picked up by any instance of that typedef.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Z.Chen
Member

This is nothing to do with typedefs. 

This is just a quick way to create new cluster.

Even you want use typedef, you have to drop them into a blank cluster one by one and than change it to a typedef.

What if you have 20 elements?

You'll need to spend 5 min droping the controls and another 5 min repairing the broken wires

Mark_Yedinak
Trusted Enthusiast

I can see how this feature would be convenient. I guess I normally don't run into this as an issue because I do some up front design first and one of the first things I do is to create my typedefs. If you do some planning on your applications first you generally have an idea of the typedefs you will need. Large scale applications (which is what I develop most) require initial design efforts. As a rule of thumb my develop process is similar even for smaller applications. The design miht not as rigoruos but I begin with thinking about what data I will be working with and how it should be organized. I rarely go the other way.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Z.Chen
Member

Please tell me how to create a typedef cluster with 20 elements without droping controls one by one. I need to learn that.

Mark_Yedinak
Trusted Enthusiast

Since typedefs (custom controls) do not have a block diagram you do need to add them one at a time. You can also copy and paste more than one control at a time.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
David S.
NI Employee (retired)

Could this be done with JKI's Right-Click Framework (RCF)?

David Staab, CLA
Staff Systems Engineer
National Instruments
Mads
Active Participant

I would love to have this functionality go both ways. The other way would be if you already have a cluster but want the controls separated - without losing the cluster. You should be able to right-click on the cluster and flatten/explode it into separate controls wired to a bundle that produces the same cluster.

 

The right-click framework from JKI could be used to make this with scripting so that's a possible way to go, but it would be nice to have this (and lots of other smart shortcuts) built into LV.