LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

contour plotting

Solved!
Go to solution

ok. Thanks alot!

 

Actually I expect my 3D contour to have some curved contours along the x-y plane. however, i am always getting horizontal planes contours. I suspect that my arrays have some problem, but am not sure where is the problem. any one can help?

0 Kudos
Message 21 of 27
(1,161 Views)

I guess this guy can help you.

 

Contour.png

Message 22 of 27
(1,153 Views)

Hi hanrock,

 

I know of that function. Maybe I should rephrase my question.

 

Currently I have the x vector, y vector and z matrix which have to be inputted into the 3d Contour plotter.

 

I think the storing of data into the arrays that i used is wrong, or maybe they are not stored in the correct order such that my 3D plot became a 2D plot. (you can open the font panel to see my results from the experiment i did yesterday.)

 

I am not very sure how array works. Can you enlighten me on how my inputs to the 3d plotter looks like?

 

Cheers

0 Kudos
Message 23 of 27
(1,151 Views)

I am not sure what image you expected to have. But can you try inputing z matrix along and ignoring both the x vector and y vector input. The plot shape mainly bases on the z matrix. It is like a mesh maping to z matrix input.

0 Kudos
Message 24 of 27
(1,148 Views)

If i ignore the x and y inputs, my x and y axis will be labelled wrongly right?

 

Btw, how come the z matrix has to be a 2d array, wat does it actually stores inside?

 

for the x and y vectors, i know that it is 1d as it stores the axis values.

but for the z matrix, i am not sure. out of the 2d, 1d is for the z value, how about the other 1d value?

0 Kudos
Message 25 of 27
(1,146 Views)

The inputs, x y z, define the surface shape. The plot creates contour lines based on the given levels in the configuration. Every quad (4 elements) in z matrix form a quad in the surface. x and y define the label. If z is a vector as well, your plot is a line instead of a surface.

 

If you just want to draw a line, you can use the line graph. That control's x y z are all vectors.

0 Kudos
Message 26 of 27
(1,143 Views)

Thanks alot!

 

I think i solved the issue. I placed an additional shift register, resulting in the wrong passing of array into the final array for plotting.

 

THe attached is the final VI.

 

Thanks alot for your help:)

0 Kudos
Message 27 of 27
(1,141 Views)