11-29-2006 07:57 AM
11-29-2006 11:57 AM
Hello Robert!
To tell the truth I'm not sure that I understand your problem. Assuming that your 'table' is what DIAdem call a 'channel' and thinking back to your last post I will try to help you.
You have to implement a loop over all your files. This can be done with a do...loop. I prefer a for...next loop if I know the loop count. In the loop you have to calcualte your average. To store the result in a channel you have to allocate one before your loop with the command ChnAlloc. In the loop you can use the Chd command to store the value in a row indexed via the loop counter.
To give you a idea here a sample script:
Dim i
Dim nCount
nCount = 10 ' Loop count
Call ChnAlloc("MyAverageChn",nCount)
For i=1 To nCount
' add average calcualtion with result in R1 here
Chd(i,"MyAverageChn") = R1
Next
Feel free to ask again if this was not the solution
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |