LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create 2D array with 3 rows and unlimit column?

I added a waveform graph..



Message Edited by JoeLabView on 11-14-2007 08:03 AM
Message 11 of 16
(2,876 Views)


ha noi wrote:
I tried to put 0 at 2nd input. but my graph didn't work. I would like to make X auto scale, and show graph until stop program. In my program, you can see X limited with 50 point. If X >50, the graph doesn't work. I haven't know to fix it.


You are using Replace Array subset for an array of 3 by 50.  So if you want to go higher than 50, you would have to use the Insert Into array (** insert long story ?? **)
 
You should also show where the integer is wired to the Replace Array.  It is coming from the top, but I can't see to which terminal it goes to.
Message 12 of 16
(2,866 Views)

Similar to before, except using Insert Into Array.  Problem is that it renders using pre-allocated memory useless....

There are many questions that come to mind... one is:  do you need to see the graph while acquiring data?



Message Edited by JoeLabView on 11-14-2007 08:17 AM
Message 13 of 16
(2,861 Views)
I just wanted to point out that the size of an array is limited not only by memory but also by a maximum size of 2^31, which is about 2.1 billion elements. Of course, since the smallest element in LabVIEW takes a byte of memory, you will still run out of memory before you reach that limit.

___________________
Try to take over the world!
0 Kudos
Message 14 of 16
(2,829 Views)
It is also considerably more effiecient to resize the array in chunks (e.g. add 1000 columns to the array at once and then replace those until you have no more and then add another 1000) than resize at each iteration.

___________________
Try to take over the world!
Message 15 of 16
(2,828 Views)
Excellent suggestion tst.
 
I wasn't sure if the limitation was (2^32)-1 or (2^64)-1 depending on the OS.
0 Kudos
Message 16 of 16
(2,808 Views)