LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

To draw a sphere in ActiveX is done, how can I extract 2D picture by certain value from the 3rd axes? Like cutting a banana.

Hi, all,
 
In Labwindows, I can use ActiveX to draw a surface in spherical coordinate system by the command CW3DGraphLib__DCWGraph3DPlot3DParametricSurface. X represents latitude (ranges 0~180), Y represents longitude (ranges 0~360), Z is altitude.
 
Right now, I need to draw a set of 2D graphs to tell the altitude pattern in different latitude. That's fix X at certain value and draw a 2D graph by Y and Z. Here I attach a sample picture, a desired picture. Could anybody tell me how can I make this graph in Labwindows?
 
Regards,
Pete
Download All
0 Kudos
Message 1 of 4
(3,419 Views)
Maybe another way, since the data array is in hand, I can draw the Y-Z value in 2D picture. But I cannot find any 2D graph or chart have spherical coordinate system, all of the are cartesian system. Anybody know where to find a cartesian system 2D graph control?
0 Kudos
Message 2 of 4
(3,411 Views)
Hi,

Take a look at the following example.  I believe the graph on the right on the user interface is what you are looking for.  Let me know if this helps or not.

C:\Program Files\National Instruments\CVI71\samples\userint\activex\3DGraphContours.cws
0 Kudos
Message 3 of 4
(3,379 Views)
Hi, Tarry,
 
Thank you so much. The issue was resolved. But I still suggest to add the spherical coordinate system in Graph control in Labwindows.
 
 
Regards,
Pete
0 Kudos
Message 4 of 4
(3,367 Views)