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.

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
(2,960 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
(2,958 Views)

LV_Enthu,

 

How about using the remainder/quotient function?

 

reinit.png

 

Matt

Message 3 of 8
(2,957 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
(2,949 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
(2,939 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
(2,931 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
(2,923 Views)

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

0 Kudos
Message 8 of 8
(2,917 Views)