LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the 3D graph with spherical or cylindrical coordinates

Solved!
Go to solution

I found the location for changing the 3D graph properties to accept spherical or cylindrial coordinates, but I can't find any documentation on how to enter the data.  Is this graph call correct, or do I need a different function?  I attached the wiki definations for the 2 coordinate systems.

 

Cylindrical

CW3DGraphLib__DCWGraph3DPlot3DCurve (graphHandle, NULL, var_RHO, var_PHI, var_Z, CA_DEFAULT_VAL);

http://en.wikipedia.org/wiki/Cylindrical_coordinate_system

 

Spherical 

CW3DGraphLib__DCWGraph3DPlot3DCurve (graphHandle, NULL, var_RHO, var_THETA, var_PHI, CA_DEFAULT_VAL);

http://en.wikipedia.org/wiki/Spherical_coordinate_system

 

Thanks

 

Ryan

 

0 Kudos
Message 1 of 5
(5,712 Views)

Hi ,

Please take a look at this KnowledgeBase: 3D Curve Graph and Cylindrical Coordinates


Mark E.
National Instruments

0 Kudos
Message 2 of 5
(5,697 Views)

I found the solution of "The 3D Curve Graph uses the mapping of (theta, z, r) into (x, y, z)", but how do the spherical coordiates map.  I don't want assume anything.

 

Thanks

 

Ryan

 

0 Kudos
Message 3 of 5
(5,687 Views)

Also, are the values for phi and theta in degrees or radians?

 

Thanks

 

Ryan

 

0 Kudos
Message 4 of 5
(5,685 Views)
Solution
Accepted by topic author ryan@gar

The correct spherical format is

 

CW3DGraphLib__DCWGraph3DPlot3DCurve (threeDgraphHandle, NULL, var_theta, var_phi, var_mag, CA_DEFAULT_VAL);

 

where phi and theta are in radians (not degrees)

0 Kudos
Message 5 of 5
(5,673 Views)