LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

3DGraph ValuePair

Dear All
 
I need a help concerning 3D plots. I have CVGraph3D Control on my panel.
I want to change names on one axis from numbers to time strings.
I don't know what I made wrong.
 
This is my code:
//for value 10 I want to put string with time
CA_VariantSetInt (&item, 10);
 
CW3DGraphLib_CWValuePairsAdd (gAxis, NULL, &ValuePair);
CW3DGraphLib_CWValuePairSetValue (ValuePair, NULL, item);
CW3DGraphLib_CWValuePairSetName (ValuePair, NULL, "10:00");
What I lost here, could you correct me, please ?
LabWindows 8.1.1
 
BR
Konrad
 
0 Kudos
Message 1 of 2
(2,874 Views)

Problem solved...

This is my code that can add string on 3Dplot

CA_VariantSetInt (&item, 2);

CW3DGraphLib_CWAxis3DGetValuePairs (gAxis, NULL, &ValuePair);
CW3DGraphLib_CWValuePairsAdd (ValuePair, NULL, &gValuePair);
CW3DGraphLib_CWValuePairSetValue (gValuePair, NULL, item);
CW3DGraphLib_CWValuePairSetName (gValuePair, NULL, "Test");
 

Forget my question.

KOnrad 

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