08-31-2009 04:39 PM
Solved! Go to Solution.
08-31-2009 04:43 PM
09-01-2009 08:47 AM
09-01-2009 09:15 AM
If you use a reference, you can try to type cast it to a cluster. If no error is thrown, it is a cluster and you can use the property ClusterElem (?) to get each element.
Felix
09-01-2009 09:17 AM
I'm sorry, but your new reply doesn't make any sense to me. What does "scan from file" have to do with it? Are you working with files? What do you mean by you don't know what the internal cluster will be comprised of? If you defined the cluster, then you know what is in that cluster.
Let's step back and look at the big picture. What is it exactly you are trying to do? Perhaps you can post a VI with an example of your clusters. Somehow I think the questions you are asking aren't going to be able to help you figure out what you really want to do.
09-01-2009 09:22 AM
F. Schubert wrote:If you use a reference, you can try to type cast it to a cluster. If no error is thrown, it is a cluster and you can use the property ClusterElem (?) to get each element.
Felix
And if you like the idea Felix mentioned you may want to review this Nugget on using control references when the data type is not known. It includes this image
that illustrates the first step Felix mentioned.
Have fun,
Ben
09-02-2009 11:38 AM
After stepping back and looking at the bigger picture, ...I first want to pull an array of data from a cluster, send the appended cluster to a vi that pulls the names and values out, then process the data array differently. This is the base action that I want to do, and then if there is another cluster in the first cluster I was looking to pull it out and deal with it like I first requested.
Attached is an example of what I am trying to do.
Much thanks,
Vince
09-02-2009 11:58 AM
_Vince wrote:After stepping back and looking at the bigger picture, ...I first want to pull an array of data from a cluster, send the appended cluster to a vi that pulls the names and values out, then process the data array differently. This is the base action that I want to do, and then if there is another cluster in the first cluster I was looking to pull it out and deal with it like I first requested.
Attached is an example of what I am trying to do.
Much thanks,
Vince
You were sooo close.
Ben
09-02-2009 12:37 PM
Gosh Ben--thanks for the quick reply,
But I get error 1057 from the 'more specific class' inside the for loop. My 'class specifier constant' does not have the braided look to it. It is the Generic>GObject>Control>Array, is that correct?
Thanks again,
Vince
09-02-2009 12:47 PM
Ignore the "braid" that is because I have the option set to show constant folding.
On the front panel right click the Array INSIDE the cluster and create a reference for the array only. Use that ref for the final "To more Specific".
Post your code if that does not work so someone can take a closer look.
Ben