ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(4,514 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
(4,512 Views)

LV_Enthu,

 

How about using the remainder/quotient function?

 

reinit.png

 

Matt

Message 3 of 8
(4,511 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
(4,503 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
(4,493 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
(4,485 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
(4,477 Views)

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

0 Kudos
Message 8 of 8
(4,471 Views)