From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-31-2012 01:32 PM
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,
01-31-2012 01:38 PM
not really too tricky if you use a little mod math
attached in 8.0
01-31-2012 01:39 PM
LV_Enthu,
How about using the remainder/quotient function?
Matt
01-31-2012 02:13 PM
@mtat76 wrote:
LV_Enthu,
How about using the remainder/quotient function?
Matt
ot exactly optomzed is it Matt? Mine benchmarks as TWICE as fast
01-31-2012 03:27 PM
at all, thanks for the inputs, will try and keep posted...
01-31-2012 03:55 PM
Muahahahaha!
I was attempting to optimize on the reply, but it looks like I must have have triggered with a delay.
01-31-2012 04:34 PM
@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.
01-31-2012 04:51 PM
"Test"? What is this "test" you speak of?