Jump to content

Why does this work?


eberaud

Recommended Posts

21 minutes ago, drjdpowell said:

A cluster is a fixed-size array.  I often use this to convert clusters (of mixed types) into an Array of Variants.

I use this feature all the time to make code more reusable, being able to find all labels, data types, and values of each element in a cluster quite easily.  It's getting back that can be more tricky, where you need to take the array of variants, turn it into a cluster (using the array to cluster setting the size correctly) then a variant to data going from the variant to the cluster.  I made an XNode for it a while ago that just sets the cluster size as you wire it up.

Link to comment
12 hours ago, Manudelavega said:

Uhm, If I reall y want/need to understand this I guess I need to dig into type descriptors and so on?

Type descriptors?  No.   There are VIs such as  “Get Type Information.vi”, which give you the info.

Type descriptors come with flattening data, and flattening/unflattening data is slow.  The various Variant functions are much faster.  

Edited by drjdpowell
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.