LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error codes

Hi everybody,

In my test of the VI I creates, I have often the same error, like -205 or -203 and I would like to know where I can find the explanations for each error code.

I search but I didn t find anything

Thank you very much

Nicolas
0 Kudos
Message 1 of 14
(3,840 Views)
Excerpt from LV 6 help database from searching "error":
*Start quote
Finding Error Code Descriptions
LabVIEW installs built-in LabVIEW error codes and error codes for related drivers, toolkits, and modules as XML-based text files. You can use the General Error Handler or Simple Error Handler VIs in labview\vi.lib\utility\error.llb to obtain a description of these error codes.

If the VIs do not return a description, the error code text files might have been moved, deleted, or corrupted. This problem usually occurs when you use user-defined error codes, applications or shared libraries, or drivers released before LabVIEW 6.1.

You often can solve the problem by taking the following actions. If you add any new error code text files to your computer, the c
hanges take effect the next time you start LabVIEW.
*End quote

If you run -203 through the error handler, it seems to be related to a com port problem. Are you trying to do something with a serial or parallel port device?


2006 Ultimate LabVIEW G-eek.

Message 2 of 14
(3,840 Views)
thank you for your answer. I was not expecting that VI would have complete the function of explaining errors.

despite the explanation given by the General Error Handler, I don t really understand errors -203 and -205.

I am trying to acquire a signal on my card, but my problem is that my card is from Adlink and not from NI. Then most of the library of Labview which can work directly with NI cards, can t work with mine (the University one!).

Thanks

Nicolas
0 Kudos
Message 3 of 14
(3,840 Views)
Hi nicolas,

In the Adlink manual is a general description of the error codes.

-203 refs to the doulbe-buffer setting API failure and
-205 refs to continuous data acquisition API failure.

I have seen the -205 error if my word count was smaller than my actual buffer size.

Hope this helps.
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 14
(3,840 Views)
Hi nicolas,

Have you enabled double buffering?

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 5 of 14
(3,841 Views)
no I haven't.

I am going to read some articles about this "count" because I don t really understand how that works.

In fact I think I don t really understand the difference between one buffer or double buffer, and the count concept. It s all the process of acquiring data I don t really catch.

I know just how to digitalise a signal, and how the theory works.

Thanks
Nicolas
0 Kudos
Message 6 of 14
(3,841 Views)
Hi,

There are some Labview examples supplied with the adlink software. Have you looked at these? There is one using double buffering, It may not be for your card but the operation in the same. Also in the manual is a chapter on double buffering and the operation.

What card are you using?


Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 7 of 14
(3,841 Views)
I am using the PCI9112 card from Adlink. I have studied all those example.

But I don t understand the interest of double buffer.

I want to do a very simple VI: put a voltage value from a sensor (wind direction sensor) into a file.txt every 10 minutes let say.

And I can t ... I don t know why, but nothing works. I can just see a graph with a right y-range, but in the file, values are not any more in this right range. I can t also set up the frequency of putting the data into a file.

... I am sure it would be easier with an NI card, what do you think?

I send you one of the 100s VI I made, with the data.txt it produces...

thank you very much for your help
Nicolas
Download All
0 Kudos
Message 8 of 14
(3,841 Views)
Hi nicolas,

Looking at your VI, it looks like a modified example sampled by the Adlink installation.

It might be you are taking too much time processing and saving you data and therefore you are getting an over run situation.
Try commenting out you file saving or going back to the original VI.
The other thing is, have you allocated enough DMA space. you have to use the Configuration Utility to set this parameter. the default 1024KBs.

regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 9 of 14
(3,841 Views)
Hi Mr

You are perfectly right, I modified one of the Adlink VI in order to be able to acquire data in a file.txt

I did as you told me, to increase the DMA space. On my PC, before I did, it was at 64 Ko.

For the data acqusisiton, I don t understand that: the values which are going to the chart are between -5 V and +5 V. When I put them in my data.txt, the range change and is strange. Have you got any explaination?


In fact I would like to sample N data, to compute the mean of them, and then to put this average value in a data.txt, but each try I do fails...


Thank you very much for your help, I feel a bit isolated!

Nicolas
0 Kudos
Message 10 of 14
(3,841 Views)