LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D array with formula node

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

0 Kudos
Message 1 of 4
(7,149 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(7,145 Views)

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!"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(7,139 Views)

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.

 

0 Kudos
Message 4 of 4
(7,121 Views)