Jump to content

Recommended Posts

Thanks Darren, I'd just like to add that these are useful for when you are trying to design more generic functions that can do different things based on different data types, or developing code that can works on data types in ways that would otherwise have to be hard coded.

Here is a (poor) example.  Lets say I want to write a subVI that will take in a cluster, and will increment every numeric in the cluster, but leave all the other data types alone.  How would you do this?  Well with these functions you can look at the Variant input, and determine what the data types are of the things contained in the cluster, and if it is a numeric, convert it to the numeric, increment, and put it back in the cluster.  Certainly if you needed something like this you could write a static VI that works on your cluster but you'd need to create a new subVI for every cluster data type you have.

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.