Looks like the control is returning the color in the format BGR instead of RBD integer that the CVI function returns. You can find this out by making the plot trace color blue, and using the CWUIControlsLib_CWPlotGetLineColor function to return the color value. Then compare this color value with the value returned by MakeColor (255, 0, 0).
To correct this, you might need to do some byte swapping before you set the color of the trace on cwgraph
I hope this helps
Bilal Durrani
NI
Bilal Durrani
NI