LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to define/declare an array of particular size?

Dear All,
                  I want to declare an array of particularly size of 50, but i dont know the function for that, whenever i am declaring an array, it doesnt hev the particular size, so can u please suggest me somehing,
 
Thanks in advance,
Rujuta
0 Kudos
Message 1 of 4
(3,199 Views)
Hi Rujuta,
This attached VI will show how to initialize an array of size 50.
But let me tell you that,  in labview arrays are dynamically sized as you keep entering new elements into it and you do not really have to specify its size.
 
regards
 
Dev
 

Message Edited by devchander on 12-26-2005 01:33 AM

0 Kudos
Message 2 of 4
(3,200 Views)

Dev,

           Why u ve put 50 in the dimension size? does it mean that u r initializing 50-D array or 1-D array of 50 elements? coz i want 1-D array of 50 elements.

 

Thanks in Advance,

Rujuta

 

0 Kudos
Message 3 of 4
(3,195 Views)

Rujuta,

You can see on the front panel that this kind of initialising will give a 1D array with 50 elements and not a 50 D array.

Have a look in this attached vi, this is how you can initialze a 2D array, a 3D  Array and so on.

Plus, this link should give you a brief tutorial on use of arrays

http://cnx.rice.edu/content/m12220/latest/

also read about arrays in this link http://zone.ni.com/devzone/learningcenter.nsf/03f7c60f17aad210862567a90054a26c/55974411828f779086256...

this should guide you

Regards

Dev

 

 

 

 

0 Kudos
Message 4 of 4
(3,189 Views)