hello everyone,
i am little stuck with this task. i would like to define a fixed dimension array (say 6 element array), and after every 6 elements are recorded, the array pointer should go back to the 0th element address.
how can i achieve this in a loop?
thanks,
not really too tricky if you use a little mod math
attached in 8.0
LV_Enthu,
How about using the remainder/quotient function?
Matt
@mtat76 wrote:
LV_Enthu,
How about using the remainder/quotient function?
Matt
ot exactly optomzed is it Matt? Mine benchmarks as TWICE as fast![]()
at all, thanks for the inputs, will try and keep posted...
Muahahahaha!
I was attempting to optimize on the reply, but it looks like I must have have triggered with a delay.
@mtat76 wrote:
Muahahahaha!
I was attempting to optimize on the reply, but it looks like I must have have triggered with a delay.
just by the extra 100 mSec per iteration it took you to test the code.
"Test"? What is this "test" you speak of?