cancel
Showing results for 
Search instead for 
Did you mean: 

Handling the array

2716jag
Member

Handling the array

Hi All,

Im Intializing the an 2D array using IntializeArray.vi with col 16000 and row 4096.

What it mean? Whether it will allocate the memory of size 16000X4096?

 

If so then im filling data into the entire 2d array within a while loop using ReplaceArraySubSet.vi , It takes much time

 

One thing i verfied, For 16000X1 it takes 1sec 438 ms

and For 16000X525 it takes much time than 10Min .... Why this happening?

Then what i have to do to minimize the time to fill data..?

 

Thanks & Regards

Jagan

12 REPLIES 12
MikeS81
Proven Zealot

Re: Handling the array

Hi Jagan,

where do you get the data from? Can you post what you have done so far?

Yes it will allocate the memory of 16000x4096x(sizeof selected type)

 

Mike

2716jag
Member

Re: Handling the array

Mike

Here im having some restriction for attachment.

 

Filling data using a ReplaceArraysubset.vi inside a while loop,  while loop terminate with the condition of filling data to the last cell.

 

 

In that it taking more than 15 min to fill the entire data. How can i reduce the amount of time on filling the data.

 

-Jagan

MikeS81
Proven Zealot

Re: Handling the array

Hi Jagan,

where do you get your data from? Maybe it would be faster to use a for loop with autoindexing.

 

Mike

2716jag
Member

Re: Handling the array

Hi Mike,

Im not using the auto index, the start value taken from the front panel and it is incremented inside the while loop which feeded to 2D array as data.

 

-Jagan

MikeS81
Proven Zealot

Re: Handling the array

Hi Jagan,

it would be great if you can upload your vi. I think it would be much easier to help you.

 

Mike

vt92
Active Participant

Re: Handling the array

Message contains an attachment

Is this the method that you are using?

 

My machine can do 16000x525 in < 1 minute.  I don't have enough memory for 16000x4096.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
2716jag
Member

Re: Handling the array

No, My Machine can do 16000X1 < 1.5 Second.

 

I have enough memory, but 16000X525 takes more than 15 minutes.

 

 

Sorry friend, Im using labview 7.0 Express. I cant able to open the file.

 

Jagan

MikeS81
Proven Zealot

Re: Handling the array

Message contains an attachment

Hi Jagan,

attached you'll find the code from vt92.

 

Mike

2716jag
Member

Re: Handling the array

Mike

In did this through while loop and not used the shift register, 

Any 16000x1 takes 1.5 sec in the sense it should take15 second for 16000x100 isn't it?

Why it take more than 4 minutes.

 

Jagan