r/LabVIEW • • Apr 04 '23

Hey guys, does anybody know how this function is called? I cant find it in LabView. Thanks <3

Post image
1 Upvotes

8 comments sorted by

22

u/heir-of-slytherin Apr 04 '23

That is the Bundle function. Used to bundle multiple items into a cluster. If you aren't familiar with clusters, definitely read up on clusters, type definitions, and using Bundle/Unbundle By Name functions. It will greatly help you as a LabVIEW developer keep your code simple and readable.

Edit: Also, if you have the code open, just press Ctrl+H to open the Context Help, and then hover over any VI/function/node/wire/control/etc. and it will tell you what it is.

3

u/Animal-Murky Apr 04 '23

thank you a lot!

4

u/jlguthri Apr 04 '23

Think Struct.. if you come from the c world

3

u/MollyGodiva Apr 04 '23

Bundling is very useful.

3

u/ZoolanderBOT Apr 04 '23

Bundling for combining various data types in a single, which called a cluster, unique to that combination of data types.

That specific bundle is bundle, there’s another one called bundle by name. I personally prefer that so you can easily identify the variable you’re working with.

4

u/FormerPassenger1558 Apr 04 '23

That specific bundle is bundle, there’s another one called bundle by name. I personally prefer that so you can easily identify the variable you’re working with.

Just to add my two cents : if a cluster is obtained by the regular "bundle', i.e. not by-name) you can still identify the variable you are working if (and only if) that variable has a Label.

1

u/jlguthri Apr 04 '23

Thought to ponder... if you are using a 2d array where your columns mean different things, consider a cluster... if your cluster isn't stupid simple, consider a class...

Not always, but questioning your data structure for reuse and maintainability is never a bad thing.

1

u/piltonpfizerwallace Apr 05 '23

If you press cntrl + H and hover your mouse over it, it will tell you the name and also give you a link to the help doc for it.