LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
AristosQueue (NI)

Create new class from selected FPTerminals or diagram constants

Status: New

I often have UI elements whose value the user sets which are then packaged up and sent to some subsystem as a block. I can trivially bundle them into a cluster (just drop a bundle node) and even make that a typedef (after wiring, create constant and then right click on that and choose Make Typedef).

 

But raw clusters are almost never found in my code. Making a class to carry the data is much more cumbersome. A shortcut would be useful. Like this:

beforeandafter.png

The operation would create a new class (and, ideally, give me a chance to name it and other settings) and then create the class with an Initialize method and go ahead and wire up those terminals. If any indicators were selected, they'd be included in the private data control but not wired up.

1 Comment
PNR
Member
Member

For a moment I thought "hey that idea already exists!". But thats not true, as all the other 'similar' ideas are about creating a cluster not a class... I'm suprised how obvious this idea is. I can see the future concept of creating a cluster/class from selected elements...  Smiley Happy

 

> But raw clusters are almost never found in my code. Making a class to carry the data is much more cumbersome.

Heaven Smiley Frustrated