06-29-2011 05:41 AM
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?
06-29-2011 08:07 PM
I guess this guy can help you.
06-29-2011 08:35 PM
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
06-29-2011 10:11 PM
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.
06-29-2011 10:24 PM
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?
06-30-2011 12:41 AM
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.
06-30-2011 01:05 AM
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:)