LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XYZ array to intensisty map


@M_Ricci wrote:

"...find a way to turn the original points into a set of triangles directly."

This is a very interesting suggestion, I will work on. 


You can probably create a triangular mesh (start reading here) for all existing XY points while initially ignoring Z, then add the actual z as a last step.

 

LabVIEW even includes a tool for points in a plane. Try it!

0 Kudos
Message 11 of 18
(139 Views)

Here's a quick example:

 

altenbach_0-1758652592279.png

 

0 Kudos
Message 12 of 18
(127 Views)

Dear Altenbach,

your support and solutions are very helpful.

I am going to study all your new suggestions. 

 

Thanks,
Max

0 Kudos
Message 13 of 18
(98 Views)

The original dimension is visible in min and max values (red dots in "3D points" graph).

Changing the number of samples it changes also the original dimension.

 

For example, in test2.vi now samples= 200 and "3D Intensity map" or "waveform graph" are both 200.

Modifying samples both graphs follow this number.

 

Is it possible to modify samples maintaining always the original dimension in "3D Intensity map" or "waveform graph"?

 

 

0 Kudos
Message 14 of 18
(73 Views)

You can change the multiplier of the x and y axes. By default, the markers correspond to the array index, but you can apply any other scaling.

0 Kudos
Message 15 of 18
(65 Views)

Here's how that would look like (simplified). (I am not sure how you messed up the z scale)

 

altenbach_0-1758828210099.png

 

Message 16 of 18
(59 Views)

The problem is that with samples= 400, the result is image A.
With samples= 50, the result is image B.

 

I found it is not related to the graph scale, pheraps in Graph2 it is more clear what happens changing samples:

Z remains the same (144.06) while XY changes.
While XY extremes must have always the same value of "Interpolate 2D Scattered" Xi or Yi extremes.

Download All
0 Kudos
Message 17 of 18
(18 Views)

@M_Ricci wrote:


While XY extremes must have always the same value of "Interpolate 2D Scattered" Xi or Yi extremes.


... and they do. You don't show how you generate the grey 3D surfaces, but X and Y must of course be based on the ramp, not on array indices.

 

I don't understand why are you still messing with the scattered interpolation instead of the triangular mesh.

0 Kudos
Message 18 of 18
(13 Views)