07-16-2010 07:31 PM
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
07-20-2010 02:46 AM
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
09-18-2013 04:24 AM
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!