03-27-2013 12:51 AM
Hello. Using LabView I try to make a photon counter. For this purpose I need to fill a 2D array by numbers of counts (counter DAQ assistant is in two Forr Loops). The problem is that in array of data I have no number of counts per step, but number of counts to the momentum of time, i.e. I have something like this (1,3,9,11,18), and want to have (1,2,6,2,7)=(1-0,3-1,9-3,11-9,18-11). How can I do it?
I think, that it can be made an array B(n,k)=A(n,k+1), B(0,0)=B(n last, k last)=0, where A(n,k) is an initial array, than A(n,k)+B(n,k)=C(n,k)- the desired array. Unfortunatelly, I don't know how to build such an array B(n,k). Help me please with this problem.
03-27-2013 01:07 AM
Hi ArtStr,
Check the attached vi and see whether it meets your requirements. I tried to generate this based on your numerical example as i could not clearly understand your "B(n,k)=A(n,k+1), B(0,0)=B(n last, k last)=0, where A(n,k) is an initial array, than A(n,k)+B(n,k)=C(n,k)- the desired array" description.