From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Collecting data from array and using for further calculations

Solved!
Go to solution

Hello all!

 

I have an array with information (values), I want to read and collect 4 values from the array. These shall be used for further calculations.

 

Take a scenario:
Let us say that the row index is 2.5 and the column index is 5.6 (these values originate from other calculations), then I would like to collect the values from the array, respectivly (2.5) (2.6) (3.5) and (3.6). So in basic the two integers closest to the index value.

The next step is to use these four values to do an bilinear interpolation (this is my problemSmiley Wink), but in order to use them I need to get them into an formula node.

To sum up; how can I collect and store the 4 values for further calculations.

Hope I explained good enough!

 

PS! I am rather new to LabVIEW, loving it so farSmiley Happy

 

 

 

0 Kudos
Message 1 of 3
(2,196 Views)
Solution
Accepted by topic author Euler123

Sounds like what you're really looking for is Interpolate 2D.vi. Check it out on the Math Palette under Interpolation.

 

Or are you using a different type of interpolation function?

No need to reinvent the wheel if your 2-D array just represents nodes on a surface.

Message 2 of 3
(2,186 Views)

Eureka !

 

Thank youSmiley Happy

0 Kudos
Message 3 of 3
(2,174 Views)