cancel
Showing results for 
Search instead for 
Did you mean: 

how to re-initialize array

LV_Enthu
Active Participant

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
7 REPLIES 7
JÞB
Knight of NI

Re: how to re-initialize array

Message contains an image Message contains an attachment

not really too tricky if you use a little mod math

aa.png

 

attached in 8.0


"Should be" isn't "Is" -Jay
cirrusio
Active Participant

Re: how to re-initialize array

Message contains an image

LV_Enthu,

 

How about using the remainder/quotient function?

 

reinit.png

 

Matt

JÞB
Knight of NI

Re: how to re-initialize array


@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
LV_Enthu
Active Participant

Re: how to re-initialize array

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

Now on LabVIEW 10.0 on Win7
cirrusio
Active Participant

Re: how to re-initialize array

Muahahahaha!

 

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

JÞB
Knight of NI

Re: how to re-initialize array


@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
cirrusio
Active Participant

Re: how to re-initialize array

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