LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to re-initialize array

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,

 

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 1 of 8
(3,900 Views)

not really too tricky if you use a little mod math

aa.png

 

attached in 8.0


"Should be" isn't "Is" -Jay
Message 2 of 8
(3,898 Views)

LV_Enthu,

 

How about using the remainder/quotient function?

 

reinit.png

 

Matt

Message 3 of 8
(3,897 Views)

@mtat76 wrote:

LV_Enthu,

 

How about using the remainder/quotient function?

 

 

 

Matt


ot exactly optomzed is it Matt?  Mine benchmarks as TWICE as fastSmiley LOL


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 8
(3,889 Views)

at all, thanks for the inputs, will try and keep posted...

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 5 of 8
(3,879 Views)

Muahahahaha!

 

I was attempting to optimize on the reply, but it looks like I must have have triggered with a delay.

0 Kudos
Message 6 of 8
(3,871 Views)

@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.


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 8
(3,863 Views)

"Test"?  What is this "test" you speak of?

0 Kudos
Message 8 of 8
(3,857 Views)