02-08-2010 02:24 AM
I have a cluster with a number of numeric variables which are bundled by names. The names and their associated values are now to be provided to a TDMS-file header via the "TDMS Set Properties" VI. This VI demands the names and values to be separated to the "Property names" and "Property values" inputs. My question is how to get the variable names out of the cluster to an array of strings?
I expect there will be a nice solution to this but I have not found this.
The suggestion in "Get Array Names from Cluster" from the community appear to be to adsvanced?
Solved! Go to Solution.
02-08-2010 02:31 AM
If you know the structure of the cluster you can just supply an array constant with the names yourself?
If you do not know the names for some reason you could use a VI in the 'Open G' library called: -
Get Cluster Element Names__ogtk.vi
If you do not have Open G then a search on here should help you find a link to it
02-08-2010 01:05 PM
Building on the OpenG suggestion, here's a snippet:
Ton
02-08-2010 01:26 PM
This sounds too easy, but is this what you want?
05-05-2016 08:42 PM - edited 05-05-2016 08:43 PM
What is that block in PaulG's for loop and where can I find it!?
Thanks!
Joey
05-05-2016 09:01 PM
@powerfactor0 wrote:What is that block in PaulG's for loop and where can I find it!?
That is a property node. The simplest way to create one is to right-click on the control you want to set/get the property for and go to Create->Property and choose whichever property you want.