Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxFailed error code -2147220712 signification

Using the PCI-6528 card, we developped an application that was working fine and the discrete driver was able to read and write discrete. After a certain time, for no apparent reason, the application started having problem with the discrete card installation. We found a problem by logging messages using:
Error:
 if( DAQmxFailed(error) )
  DAQmxGetExtendedErrorInfo(errBuff,2048);
 if( taskHandle!=0 ) {
  // DAQmx Stop Code
  DAQmxStopTask(taskHandle);
  DAQmxClearTask(taskHandle);
 }
 if( DAQmxFailed(error) ) {
  if(pml) pml->logMessage(1, "DAQmx Error from channelWrite ", "%s(%d): %s", __FILE__, __LINE__, errBuff);
  if(pml) pml->logMessage(1, "Error - 1st", "%s(%d): %d", __FILE__, __LINE__, error);
 }
after each DAQmxReadDigitalLines or DAQmxWriteDigitalLines calls. The errBuff is empty and the error value is -2147220712. Could you please help me on the meaning of this return code?
Thanks,
Alex
0 Kudos
Message 1 of 2
(4,372 Views)

 

 

Hi Alex,

 

Thank you for posting to the NI forums.  It sounds like something has gone wrong at the driver level.  Repairing the driver and Measurement & Automation Explorer  (MAX) may help resolve this error.  If you are using Windows, open Control Panel >> Add Remove Programs >> National Instruments Software.  Select the driver and click Repair; do the same thing for MAX.

 

Please post back if you have further problems.  Thanks!

 

Ed W.

Applications Engineer

National Instruments

0 Kudos
Message 2 of 2
(4,357 Views)