LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos
Message 1 of 13
(3,679 Views)

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

0 Kudos
Message 2 of 13
(3,655 Views)

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

0 Kudos
Message 3 of 13
(3,647 Views)

Hi Jagan,

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

 

Mike

0 Kudos
Message 4 of 13
(3,627 Views)

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

0 Kudos
Message 5 of 13
(3,616 Views)

Hi Jagan,

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

 

Mike

0 Kudos
Message 6 of 13
(3,611 Views)

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
0 Kudos
Message 7 of 13
(3,610 Views)

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

0 Kudos
Message 8 of 13
(3,605 Views)

Hi Jagan,

attached you'll find the code from vt92.

 

Mike

0 Kudos
Message 9 of 13
(3,600 Views)

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

0 Kudos
Message 10 of 13
(3,568 Views)