LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

several 3D plots on the same graph

Solved!
Go to solution

Thanks.

 

I tried, but still doesn't work.

 

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(1), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VTRUE);

CW3DGraphLib_CWPlot3DPlot3DSurface (plotHandle, NULL, xArray1, yArray1, dArray1, CA_DEFAULT_VAL);

 

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(2), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VFALSE);

CW3DGraphLib_CWPlot3DPlot3DSurface (plotHandle, NULL, xArray2, yArray2, dArray2, CA_DEFAULT_VAL);

 

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(3), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VTRUE);
CW3DGraphLib_CWPlot3DPlot3DSurface (plotHandle, NULL, xArray3, yArray3, dArray3, CA_DEFAULT_VAL);

 

If I have the above code, does that mean it will draw plot 1 and 3, but hide 2?

 

I have changed various sequence, but still only the last one got ploted. 

 

Thanks,

Yanchu

0 Kudos
Message 11 of 13
(1,156 Views)

hi,

 

sorry I didn't see your message... i think you must do like that :

 

/* here you draw the first plot */ 

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(1), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VTRUE);

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(2), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VFALSE);

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(3), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VFALSE);

CW3DGraphLib_CWPlot3DPlot3DSurface (plotHandle, NULL, xArray1, yArray1, dArray1, CA_DEFAULT_VAL);

 

/* here you draw the second plot */ 

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(1), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VFALSE);

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(2), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VTRUE);

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(3), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VFALSE);

CW3DGraphLib_CWPlot3DPlot3DSurface (plotHandle, NULL, xArray2, yArray2, dArray2, CA_DEFAULT_VAL);

 

/* here you draw the first plot */ 

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(1), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VFALSE);

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(2), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VFALSE);

CW3DGraphLib_CWPlots3DItem (plotsHandle, NULL, CA_VariantInt(3), &plotHandle);

CW3DGraphLib_CWPlot3DSetMultiPlot (plotHandle, NULL, VTRUE);

CW3DGraphLib_CWPlot3DPlot3DSurface (plotHandle, NULL, xArray3, yArray3, dArray3, CA_DEFAULT_VAL);

 

do you understand? I did like that for my project and it works...

you must put true for the plot you want to draw...

 

here each curve will be drawn...

 

if you don't want to draw a curve just not put it at the true value

 

let me know if it is good...

 

bye

 

Adeline

 

0 Kudos
Message 12 of 13
(1,130 Views)

Dear sir/lady

 

I'm using the activeX-Graph3D now, but there isn't any function help, such as "CW3DGraphLib_CWPlot3DPlot3DCurve...", in "NI LabWindows/CVI Help".

How can I get some help like the funtion manual that explain those funtion of Graph3D?

 

Thank you very much!

 

 

0 Kudos
Message 13 of 13
(954 Views)