05-01-2009 12:27 AM
Hello,
Is there a way that labview recognises the array size and automatically unbundle it into that many clusters as number of elements in the array?
PS. I am using labview 8.2
Solved! Go to Solution.
05-01-2009 01:18 AM
No, clusters are fixed in size and can only be modified in edit mode.
Why do you even need clusters? Can't you keep it as an array?
05-01-2009 06:18 AM
I need them to plot several variables on different graphs..
Like this one below..
05-01-2009 09:12 AM - edited 05-01-2009 09:12 AM
Something like this?
05-01-2009 09:24 AM - edited 05-01-2009 09:25 AM
That would simply force you to use a default cluster of 9 elements. What if the array is more than 9?
@ravi:
You do not need to convert an array to a cluster and then unbundle the cluster to get the individual elements. Index Array is resizable. Better yet: use a for-loop with autoindexing. As to the actual graph that's being created I don't quite understand it. You are using the same X value with different Y values. That's just a vertical line. As altenbach likes to say, your code can be simplified to fit on a small stamp:
05-01-2009 10:11 AM
Yes smercurio,
What u understood is right.. i shall try the method u suggested and let you know..
Regards
Ravi
05-01-2009 10:33 AM
Also don't forget that xy-graphs accept complex arrays, simplifying the data structures even more. 🙂
(See e.g. this example.)