Same project, different function...
I have an OPC connection set up that pulls thickness values into a double precision array of data. The array consists of 560 measurements across the sheet (rows) and appox. 80 scans (columns) of data. I'd like first to average across each row of data. Then, I want a total average of all the data in my array to get a total thickness average across the sheet. Here is where I run into a problem. The array that I read in via the OPC connection is zero-filled on the top and bottom. The first 30 or so rows and the last 30 or so rows contain zeros. The number of rows with zeros varies each time I read in data. As a result, for my total average thickness of my data, I'd like to average all the non-zero numbers in my array.
After that, I'm interested in comparing the averages for each row with the total average thickness to get percent deviations across my sheet and plot that data on a line graph to get a thickness profile of the sheet.
Let me know if I've lost you. Again, your help is extremely appreciated.