07-05-2012 10:06 AM
Hi,
I am new to labview and I am doing a project in which i move an XY stage under a laser to etch pictures. So far I have managed to get the stage to move by reading off coordinates from an excel spread sheet and so can draw pictures if I have the coordinates.
I am trying to use the vision module to be able to put any image in and then find the edges, get the coordinates of the edge and so draw the image. Using the vision assistant I do colour plane extraction (to make greyscale) then use shape detection looking for lines with a small minimum length, this gets the information i want and if i click the button on the right that says send data to excell i get a spread sheet with all the information i need. However, I cant get it to automatically save to excell (the write to spread sheet function doesnt work as "The type of the source is 1-D array of cluster of 5 elements."
It would probably be bettter if i could use the output of the vision assistant (shape detection) straight away without having to save to excell but I cannot extract the information i need from the output as none of the array/cluster functions seem compatible with the data. I am using labview 10 and have attached my VI below any help would be greatly appreciated!
07-12-2012 05:13 AM
Hello hzub1,
It seems your having trouble getting to the information in the output of your Vision Assistant. You can use Context Help (Ctrl+H to show) to help understand the contents of a large array or cluster when you hover your mouse over the wire (see below).
Looking at the above I created the code below which breaks out all the contents of one item in the array.
Here I use the Index Array function to break out one element of the array. Each element is a circle descriptor, cluster of 5 elements so I use the Unbundle by Name function to access each of the values in the cluster
I hope this helps,