07-28-2010 07:44 PM
Hi,
I'm trying to modify ni's Particle Orientation Example, so I'll be able to extract additional data from it.
I've tried to modify the "unbundle" function in the loop for the new data, but it's impossible to extend the "unbundle" tool.
Any suggestions?
Thank you,
Solved! Go to Solution.
07-29-2010 02:17 AM
You can use a reshape array and convert it into a 1d array
07-29-2010 02:17 AM - edited 07-29-2010 02:24 AM
***Double post***
And if you want to unbundle it and use it you can also avoid the for loop
07-29-2010 02:25 AM - edited 07-29-2010 02:27 AM
Thanks for your approach Muks, but will I still need the analysis and the option to choose the background (i.e... white on black, black on white, and etc...). So I think I still need the for loop for that, don't I?
07-29-2010 02:30 AM
Also, just for curiousity, why do they subtract 25 from the x center of mass in the example (inside the for loop)? I wonder if an ni person could answer that.
07-29-2010 04:45 AM
You have define your own cluster size in array to cluster. Right click the array to cluster and define the same.
07-29-2010 04:47 AM
The 25 is subtracted so that the numbers can be overlayed in the image properly. Change the number to say 100 and you will change the overlayed test to change. The 25 is subtracted from the centre of mass x.