Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a document that lists error codes for NIDAQmx? DAQmxGetErrorString doesnt work.


Yesterday I got 15433 from DAQmxStartTask and had to post here, I had no idea what the error meant since DAQmxGetErrorString could not recognize the error.

Today I am getting -3621 from DAQmxReadAnalogF64, and again DAQmxGetErrorString cannot tell me what this means. There is nothing in any help file I have seen at that indicates what these error codes might mean.

It makes troubleshooting my code very difficult as I the only way I can find out what is going on is to post here where I might have to wait a day or two for an anwer here.

So is there a document somewhere, or a web page, or something I can access where I can find out the meaining of these error codes?

Message 1 of 8
(16,086 Views)
Hello kmagas,
 
NI-DAQmx error codes generally start with a -2 and are 6 digits long.  The  numbers you have posted are not DAQmx error codes that I have ever seen before.  Are you using DAQmxErrChk() to check for errors?  If you are not familiar with this function, you might take a look at DAQmx example programs in the NI Example Finder which can be opened at Help >> Find Examples.  DAQmxGetErrorString will return a message that corresponds to the DAQmx error number, but the numbers you have are not DAQmx error codes.
 
With that being said, you can look in NIDAQmx.h for a complete list of DAQmx error codes. 
 
If you would like to post the portion of your code that you are having problems with, perhaps there is something that we might see that is causing this problem.
 
Regards,
Laura 
Message 2 of 8
(16,068 Views)

With that being said, you can look in NIDAQmx.h for a complete list of DAQmx error codes. 

 

 

Wow. So, I need to look for nidaqmx.h in my computer (if it was installed) to get only the reference name of the error code??

Why it is not in the help files??

Very useful...

 

0 Kudos
Message 3 of 8
(15,729 Views)

is there any updates on this question? Error -200088 is blowing my mind... XX(

justinmreina@gmail.com
0 Kudos
Message 4 of 8
(14,035 Views)

Task specified is invalid or does not exist.

 

Found under Help/Explain Error and enter that code number in.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 5 of 8
(14,025 Views)

Link below gives you driver code errors:

http://zone.ni.com/reference/en-XX/help/370473H-01/mstudiowebhelp/html/nidaqmxdrivererrors/ 

 

Please note: there are other error codes possible (like error code -50013, see here: https://lavag.org/topic/5900-ni-daqmx-error-50103-the-specified-resource-is-reserved/)

0 Kudos
Message 6 of 8
(13,713 Views)

The given zone.ni.com reports a dead page.

 

List of codes found (working today) at:

 

  http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/01d50d3f86ee67d8862576cf00745e78/$...

 

Note that this covers the 'errors' only, i.e. 'Status codes' < 0.

 

I have not found yet a similar list for 'warnings', viz. codes > 0...

And why not make a complete list of codes, btw...?

 

Hoping this helps

Message 7 of 8
(13,499 Views)

Actually, all of the URLs given so far do not work any longer (and yes, some of us are still finding this thread several years later when dealing with the same need).  The NI web site's own search function is no help, either (at least not today), but a decent web search engine can do a better job.  Try this: 

https://www.google.com/search?q=daqmx+error+codes+site%3Ani.com

Unfortunately, the only such documentation page I can find (presently titled "NI-DAQmx Driver Error Codes") only lists error codes beginning with "-2".  It doesn't cover such things as -88709 or -50103.

 

0 Kudos
Message 8 of 8
(3,090 Views)