LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PlotY gives error

 

 

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?

0 Kudos
Message 1 of 3
(3,048 Views)

What is the error message when running the program in debug mode?

0 Kudos
Message 2 of 3
(3,045 Views)

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

0 Kudos
Message 3 of 3
(3,028 Views)