Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/18/2024 in all areas

  1. In general it is just best to make your cluster a type def (which links all the places that data is used, similar to a defined struct) and then unbundle and bundle the data as needed. Since LabVIEW is a strictly typed language, getting all data from something like a cluster means it will have to return them as variants. And then what do you do with that? Well you'll need the Variant to Data, and specify the type it should turn into. If it is the wrong type you get an error. So while you can get all elements of a cluster in an order, the usefulness of it might be limited. If you are doing something like taking a cluster then writing it to a file, or reading it from a file and you want it to be somewhat human readable, then this might be useful way of doing it. These functions already exist in the OpenG Variant Configuration File toolkit.
    1 point
  2. Have you considered variant attributes?
    1 point
  3. If your cluster contains elements that are all the same data type, you can use the Cluster To Array function. If your cluster contains elements that are different data types, then the approach you describe won't really work due to LabVIEW's strict data typing.
    1 point
×
×
  • Create New...

Important Information

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