LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

3d graph general question

Hi
I try to plot a logged file to a 3D graph and do not understand the arguments to the function
CW3DGraphLib__DCWGraph3DPlot3DSurface()
 
The function expects 2 vectors and 1 matrix. The x and y vectors are one dimensional arrays (such as x[100], y[100])
and the z matrix two dimensional (z[100][100])
 
I have three variables logged, they are all one dimensional x[100],y[100] and z[100].
 
In a example provided by NI, 3DGraphContours.cws, the call uses the x vector for both x and y vector. The values in x[ ] is -PI to +PI
The z matrix contains data generated by sin and cos.
 
My question : With 3 variables how do I call  CW3DGraphLib__DCWGraph3DPlot3DSurface()
Regards Per
0 Kudos
Message 1 of 2
(3,031 Views)

Hi

I'' rephrase as my question was not formulated precisly :

Still asuming that the xData will be assigned to the x-vector and the yData to the y-vector.

As for the z-matrix I do not know how to fill the array to reflect z-values with respect to both x- and y-axis.

What shold be stored in z[0][0...99] , z[1][0..99] and z[...99][0....99] prior to the plot function.

Appreciate any suggestion

Regards Per

 

0 Kudos
Message 2 of 2
(2,995 Views)