LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Very strange situation

Hi,

I have a program with Strip Charts to show me what is happening. Everything was working until today.... Now I have:  """ NON-FATAL RUN-TIME ERROR:   "OpcClient.c", line 262, col 17, thread id 0x00000170:   Library function error (return value == -14 [0xfffffff2]). Value is invalid or out of range """.The code is:               

 

                theValue2=theValue2/10;               

                datapoints[0] = theValue;
                datapoints[1] = theValue2;
                datapoints[2] = theValue3;
                
                
                PlotStripChart (panelHandle, PANEL_CHART, datapoints,1,0,0, VAL_DOUBLE);       //this is line 262
                PlotStripChart (panelHandle, PANEL_CHART_2, datapoints, 1,0,0, VAL_DOUBLE);
                SetCtrlVal (panelHandle, PANEL_PRESSURE, theValue);  

 

Can anyone help me? Until today everything was working ok.

Thanks.

 

0 Kudos
Message 1 of 7
(3,799 Views)
When will someone fix this issue of " " replacing all the spaces in the
posts. It make them utterly unreadable and has been noted here for years.

No, I will NOT read the forums on the net, Usenet is 20 times faster and has
a much better interface.
--
Guillaume Dargaud
http://www.gdargaud.net/


"prepond" <x@no.email> a écrit dans le message de news:
1233126609877-842593@exchange.ni.com...
> Hi,I have a program with Strip Charts to show me what is happening.
> Everything was working until today.... Now I have:&nbsp;
> &quot;&quot;&quot; NON-FATAL RUN-TIME ERROR:&nbsp;&nbsp;
> &quot;OpcClient.c&quot;, line 262, col 17, thread id
> 0x00000170:&nbsp;&nbsp; Library function error (return value == -14
> [0xfffffff2]). Value is invalid or out of range &quot;&quot;&quot;.The
> code is:&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> theValue2=theValue2/10;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> datapoints[0] = theValue;
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp; datapoints[1] = theValue2;
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;datapoints[2] = theValue3;
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;PlotStripChart (panelHandle, PANEL_CHART, datapoints,1,0,0,
> VAL_DOUBLE);&nbsp;&nbsp; &nbsp; &nbsp; //this is line 262
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;PlotStripChart (panelHandle, PANEL_CHART_2, datapoints, 1,0,0,
> VAL_DOUBLE);
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
> &nbsp;SetCtrlVal (panelHandle, PANEL_PRESSURE, theValue); &nbsp;&nbsp;Can
> anyone help me? Until today everything was working ok.Thanks. &nbsp;


0 Kudos
Message 2 of 7
(3,787 Views)

Guillaume Dargaud wrote: 

 Usenet is 20 times faster and has a much better interface.


Evidently not, as the web based interface at least understands the embedded codes and manages to produce a user-friendly presentation, in contrast to the Usenet one. Maybe you should pursue the Usenet interface designers and bring them kicking and screaming into the 21st century Smiley Very Happy

 

JR

Message 3 of 7
(3,785 Views)

Hello prepond,

 

How many traces do you have configured in your chart? (I'm guessing 3)

 

You must plot at least as many points as you have traces, or you will get this error. In the 4th parameter of the function, you are passing 1. I'm guessing that you intended to pass 3.

 

Luis

Message 4 of 7
(3,772 Views)

Hi again.

Yes I have 3 traces, I changed this value 1 for 3 and now I have different error:

 

NON-FATAL RUN-TIME ERROR:   "OpcClient.c", line 262, col 17, thread id 0x00000FB8:   Library function error (return value == -12 [0xfffffff4]). Out of memory

 

Out of memory? What is going on? 

Please help:)

Thanks.

0 Kudos
Message 5 of 7
(3,731 Views)

With just this information, I don't know. Can you replicate this problem in a small program that you could attach here, so that I can try to reproduce it?

 

Luis

0 Kudos
Message 6 of 7
(3,714 Views)
Thanks, I resolved the problem. Charts had wrong parameters.
0 Kudos
Message 7 of 7
(3,708 Views)