08-14-2010 04:58 AM
Hi all
I want to use PlotY function in order to plot the data. This data is received from the 12 bit ADC of a Daq card and it is stored in the Array of the data type (USHORT *)hUserBuf
When i use the PlotY function like
PlotY(panelHandle,PANEL_PLOT,(USHORT
*)hUserBuf,40960,VAL_UNSIGNED_SHORT_INTEGER,VAL_THIN_LINE,VAL_EMPTY_SQUAR
E,VAL_SOLID,1,VAL_RED);
After running the program when i press the corresponding button , the compiler gives the FATAL RUN
TTIME ERROR and highlights the function PlotY.
Plz tell what i am doing wrong?
08-14-2010 05:26 AM
What is the error message when running the program in debug mode?
08-15-2010 04:49 AM
Hi,
I have just tried your sample, using unsigned short int *hUserBuf [ 40960 ]; it worked perfectly. So may be the array size you have allocated is too small?
Hope it helps,
Wolfgang