06-28-2008 03:52 AM
06-28-2008 04:25 AM
I guess you make the real-time measurement at the "create random number".
One think it does not make any sense is that you continiously reverse the array of the shift register.
06-28-2008 04:32 AM
06-28-2008 04:44 AM
06-28-2008 05:18 AM
Thank you. Please see this attached Vi. When i have finit array, in that case i can find out any element i want, for example in this case the last 2 elements are number 7 and 8, and i need to compare last 2 elements everytime. But real time measurement case i cant find out last 2 elements, so i reverse the array and number 'n' becomes number 0, and number 'n-1' becomes 1. so after i can do comparison and the last i will reverse array back. In my case first i compare number 0 and 1 elements of array, after 2 and 3, and like that continuesly...If 'n' minus 'n-1' less than 0.1 the array continue like original, but when 'n' minus 'n-1' greater than 0.1 the last element 'n' changes to 'n-1' and continue the next....I think i wrote by details and now you fully can understand the problem.
Thanks.
06-28-2008 06:08 AM
"But real time measurement case i cant find out last 2 elements,"
You can always find the last two elements. Use the "array size" function. Ths will give you a number , let's say 16. The last two elements of the array are the index numbers 14 and 15 (because the first element is the zero).