QUOTE (bandersen @ Nov 2 2008, 07:48 AM)
Hello,
Just to clarify, the .h files should be from LabWindows/CVI not from LabVIEW. These are two separate National Instruments products.
But the reason you are still receiving the error is because you are trying to plot a waveform to a numeric control.
int nNewCtrl = NewCtrl(panelHandle,CTRL_NUMERIC,0,10,10);
int PlotWaveform_RETURN_VALUE = PlotWaveform (panelHandle, nNewCtrl, myArray,4,VAL_DOUBLE,1.0,0.0,0.0,1.0,VAL_FAT_LINE,VAL_DOTTED_SOLID_SQUARE,VAL_SOLID,1,VAL_RED);
PlotWaveform is meant to be used to plot an array of data to a LabWindows/CVI graph.
For further reference, the "Using LabWindows/CVI Libraries in External Compilers" topic of the CVI help mentions that the -10 error means that you are passing the wrong control type to the function.
Thanks