LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write data to table (interpolated)

I need a way to add 2D data to a table between cells. Similar to interpolated but backwards.
For example: I have a 2D table and the value 2.5 needs to be distributed between 4 cells in the correct proportions. Maybe 2.25 in cell 0,0, 2.75 in cell 0,1, and so on.
0 Kudos
Message 1 of 6
(2,883 Views)
Why not just use insert into array and the index where you need it to be inserted.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 6
(2,875 Views)

@bfeddeck wrote:
I need a way to add 2D data to a table between cells. Similar to interpolated but backwards.
For example: I have a 2D table and the value 2.5 needs to be distributed between 4 cells in the correct proportions. Maybe 2.25 in cell 0,0, 2.75 in cell 0,1, and so on.


It seems to me you want to do something like antialiasing, where you want to add a point into a 2D integer lattice, but the point has fractional coordinates. Thus you want to fill 4 adjacent cells proportionally such that the "center of gravity" of the four cells is located at the fractional indices. Is this correct?

I have a 1D version that fills two adjacent cells in a histogram according to the fractional index. Should be easy to adapt it to 2D. 🙂
0 Kudos
Message 3 of 6
(2,870 Views)
That is exactly what I want to do.
Can I get your 1D version?
0 Kudos
Message 4 of 6
(2,864 Views)
Here's a simple demo that uses my 1D version (LabVIEW 7.0) ;).
0 Kudos
Message 5 of 6
(2,851 Views)
I would of thought you could do it with a 2D array but Christian probably has a better idea.
0 Kudos
Message 6 of 6
(2,845 Views)