Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

-301721 Error on NI-8451

Hello,

   I am using 5 Ultra sound devices on the  NI-8451 I2C side. Most of the time it works fine, but rarely it returns -301721 Error, which is unknown. (It says contact support at NI). I have the most recent drivers installed. My machine is a Core2Quad with Vista 64bit.I am using Visual studio 2008 with the ANSI C interface to the NI-8451 I2C bus, provided by NI.

 

 The real problem is after the error code, windows goes back to visual studio, but then when I run it again it does a memory dump for the whole computer, then restarts it.

 

Anyone have any idea how to make it stop doing this?

0 Kudos
Message 1 of 12
(7,510 Views)

Hello blah32,

 

I see that you are getting -301721 errors with your NI USB-8451.  What version of the NI-845x driver and LabVIEW are you using?  You can use Measurement & Automation Explorer (Start»Programs»National Instruments»Measurement & Automation Explorer) to determine this--please note my screen capture for your reference.

 

max.gif

 

If you are not using the latest version (1.1.2, else 1.1.3 with LabVIEW 2009), I suggest updating your system with the following link.  I currently have v1.1.3, which installs with LabVIEW 2009.  Currently, we only offer v1.1.2 online.  It can be found here:

 

NI-845x 1.1.2 - Windows 2000/Vista x64/Vista x86/XP

 

The reason I suggest this is because there may have been an issue not properly handled in prior versions of the drivers.  Updating to the most recent version should remedy this if it happens to be the underlying issue.  I also noticed that you mentioned you had the latest driver, but I want to make sure, just in case.

 

Can you describe what is going on when this error occurs?  Is there anyway that you can reliably reproduce this error?  In order to truly solve this issue, I would like to recreate the behavior that you are seeing.  Please let me know if you are aware of a way to reliably recreate this.  Secondly, if you have another NI USB-8451, does it exhibit this same behavior?  If not, this may indicate that there is an issue with one of your I2C interfaces.

 

Are you using more than one master on the same network?  The reason I ask is because I have seen a similar issue on the NI Discussion Forums before.  You may want to consider reading through this post as it offers additional troubleshooting steps (e.g., taking an NI-Spy capture).  Feel free to provide this information to this post as well.  Ideally, you would be able to take the NI-Spy capture when the error occurs.  Also consider scoping the SDA and SCL lines when the error occurs.  This would be helpful as we continue troubleshooting.

 

Why is my USB 8451 raising errors after working correctly?

 

I'll look forward to your response.  Have a great weekend!

--
Tyler C

0 Kudos
Message 2 of 12
(7,484 Views)

I have version 1.1.2f2

 

 It's not hard to reproduce, about every 3rd or 4th time I restart my program it does it. Then when I try to run again, windows does a core dump and restarts (It says something about "Windows driver framework violation occoured"). I am using you guy's examples specifically built from the example in C:\Users\Public\Documents\National Instruments\NI-845x\Examples\MS Visual C\I2C\Basic with the example solution General Read and General Write. This works on its own 95% of the time without the error, but even these occasionally do it on their own. I abstracted the NI-8451 into a c++ class and use it with other abstracted sensors on USB. When they are all together, the chance that I get the  -301721 error is about 30% of the time (substantially higher than by itself). None of the other devices cause problem; it always fails when trying to initialize the I2C devices.

 

No, I have no master but the NI-8451 by itself. All the UltraSonic devices are slaves.

 EDIT:

Also, I use a DAQ unit (SCB-68 Noise Rejecting, Shielded I/O Connector Block ) and (NI PCI-6251 (16 AI, 24 DIO, 2 AO) ) and (NI PCI-7833R 3M Gate R Series RIO Board (8 AI, 8 AO, 96 DIO) )
)...if you wanted to know any other NI devices.

 

I don't use labview directly.

Message Edited by blah32 on 08-14-2009 01:39 PM
Message Edited by blah32 on 08-14-2009 01:39 PM
0 Kudos
Message 3 of 12
(7,479 Views)

You are certainly experiencing an interesting issue.  I did a quick Google search regarding the Windows Driver Framework error you mentioned, and I found this site.  It notes updating the driver and installing the latest updates for Windows. Have you tried installing any Windows updates?  Also, you should try repairing the NI-845x driver.  There is a chance that the installation may have been corrupted and performing a repair should fix this.

 

If the issue still persists, please take a NI-Spy capture of your application causing a -301721 error.  I have attached a link to a KnowledgeBase that describes this process.

 

KnowledgeBase 4P3FR2LQ: Performing a Good NI Spy Capture for Debugging/Troubleshooting

 

It would also be helpful to analyze your memory dump.  Can you share this with me?  I would need you to FTP this file to our server.  The following are some instructions for achieving this.

 

1. Save the file in a folder with your username on it (blah32).  This will help me identify your files.

2.  Upload files to ftp://ftp.ni.com/incoming. Open a Windows Explorer window and navigate to the site.  If you are using Internet Explorer, click "Page" then "Open FTP Site in Windows Explorer" to be able to upload.  If you are using Mozilla Firefox, you'll need the IE tab add-on to be able to upload files to the server.
 

These files will help troubleshot this issue further if the Windows updates and repairing the driver does not help.  I'll look forward to your response.

 

Cheers!

--
Tyler C

0 Kudos
Message 4 of 12
(7,451 Views)

The windows update and driver update don't seem to help.

 

I took the NI-spy files and the .dmp file and put them in a zip file called "blah32 ni8451 requested error files.zip" and uploaded that to the ftp you specified. (I couldn't create a folder with my user name on the ftp, but its the first thing in the file name.)

 

Let me know if/when you find anything.

 

Thanks

0 Kudos
Message 5 of 12
(7,407 Views)

Sorry, I partially uploaded the file twice and my connection died both times.

 

I finally got a good upload with the file called "blah32 -FINAL- ni8451 requested error files FINAL.zip". Please refer to this one and delete the other 2 starting with blah32.

0 Kudos
Message 6 of 12
(7,404 Views)

Hey blah32,

 

Thanks for uploading those files.  Let me download those from the server and look into your issue a bit further.

 

Cheers!

Tyler C

--
Tyler C

0 Kudos
Message 7 of 12
(7,379 Views)

Hello blah32,

 

I have been looking through your files, but I am not able to determine where your 8451 experiences the -301721 error.  Can you refer me to the line number in the NI-Spy capture that shows your 8451 receiving this error?  I am currently looking at the  Capture_NI8451_UNKNOWN_STATUS_CODE_ERROR.spy.

 

spy.gif

 

Have a great day!

--
Tyler C

Message 8 of 12
(7,372 Views)

Hello,

   I don't know where it is either, but the drivers whiel running the program give me the error during that.

 

I figured out 1 thing I can do to fix it before it does a memory dump of the computer, and afte rit gives me the status code error. IF I unplug the 8451 from the USB connection to the computer then plug it back in, it will work normally again for a while.

 

I'd still like you guys to look into it, but I gave you a capture from a time when the output to the screen said  -301721 error.

0 Kudos
Message 9 of 12
(7,130 Views)

Hello blah32,

 

When you unplug/plug a USB device, it essentially reinitilizes the device to a new state of operation.  Do you know if you are leaving any references open to the card at the end of your program?  I know you said that this occured when using one of the shipping examples.  Is this still the case?

ColeR
Field Engineer
Message 10 of 12
(7,111 Views)