12-05-2012 12:30 PM
hi,
i was looking on this forum and found this picture:
that 2D array input would help me so much in my VI but i can't find it anywhere in labview(newb lol), i need an 2D array where i can preset the value's because i'm going to use the 2D array for a filter and i need to add the value's myself, how is best way to do this? and could this be done in C code only or is it easier to use a labview function?
any tips are alwasy welcome 🙂
Grtz
12-05-2012 12:39 PM
Are you asking how to make the constant? Drop down an array constant. Right-click on it and select Add Dimension. Put a numeric constant in the array container. Done.
12-05-2012 01:00 PM
Hi stin,
when you don't know how to create a BD constant you surely should attend the LabVIEW beginners courses offered by NI!
And when you ask for preferring LabVIEW- or C-style code in a LabVIEW forum you should expect the answer "LabVIEW functions of course!"...
12-05-2012 02:37 PM
If you already have a function that expects an array (e.g. index array), right-click the input and "create constant". This probably gives you a 1D array, so simply resize the array index so two elements show to make it 2D. Expand the size of the container to show the desired number of array elements. Enter your values.