Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

mean values to array

Hi

As new in LabView I am having difficulties in saving my measurement data. I have some images from which I measure their color mean values. After measurement I want to save  these measurements in an excel sheet, but I somehow fail to save these into a some kind of array and consequently I get only the last color value of the last image. Any ideas how to preserve all values?

0 Kudos
Message 1 of 10
(4,762 Views)
Use a loop to read the values(A while loop or a for loop).Right click the array structure and choose enable indexing.Now you will get all the values.Use write to spread sheet function to write the values and save it.
0 Kudos
Message 2 of 10
(4,761 Views)

I am trying but I still don't get the wanted results. I have exaclty 20 images. attaching the part of the code.

0 Kudos
Message 3 of 10
(4,750 Views)
You have to put your value generator inside the loop.
0 Kudos
Message 4 of 10
(4,746 Views)
Message Edited by muks on 08-21-2008 05:14 AM
Download All
0 Kudos
Message 5 of 10
(4,744 Views)

Hi

 

while it works generally it still doesn't work for my specific example.

 

 

0 Kudos
Message 6 of 10
(4,721 Views)
See in the diagram instead of random numbers u can put your "Image to mean value generator".
0 Kudos
Message 7 of 10
(4,713 Views)

It doesn't work. With this method I get the last value written 20 times at the excel sheet. I have looked pretty much how to do this, and frankly I am frustrated not to be able to do it.

0 Kudos
Message 8 of 10
(4,688 Views)
u have to have the read value  function,Inside the for loop.For each iteration u will be reading a different value and at the end of it if you index it u will get all the values.In your vi u are just converting the last value into double.So obvoiuosly the number of iterations specified by u will the the last value ouput so many times.
Message Edited by muks on 08-22-2008 04:59 AM
0 Kudos
Message 9 of 10
(4,685 Views)

 

 

 

 

 

 

Message Edited by muks on 08-22-2008 05:09 AM
Message Edited by muks on 08-22-2008 05:11 AM
Download All
0 Kudos
Message 10 of 10
(4,679 Views)