Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

NI MAX access violation with USB devices

Solved!
Go to solution

I found a lot of posts talking about access violation but most of them relate to LabView and not to NI MAX, as is the case here.

I get an access violation error (0xC0000005 at EIP=0x106399AE) every time I try to create a new task from NI MAX by selecting a USB DAQ device. I tried both with USB-6009 and USB-6211, same problem faced. The device is recognized correctly (self test passed) but when I try to create a new task I complete the whole procedure and when I click finish I get the error. This causes also programs from LabView that use the tasks from NI MAX to crash.

 

This first happened after updating the NI DAQmx drivers to a new version, but then I recognized that that version was incompatible with Labview installed on that machine (8.6). I tried to fall back using a restore point in windows and reinstalling the 9.5.1 DAQmx drivers (the latest drivers supported by the LabView version.

 

I tried to "Reset Configuration Data" from NI MAX (under tools menu) with no success. The WindowsXPUSBhotfix is also installed in the system. Any help?

 

I also sent a support ticket to NI: c82f5b4f-d774-40a2-8341-4dbeee9df876

 

PC specs:

Windows XP SP3

LabVIEW 8.6

NI DAQmx 9.5.1

0 Kudos
Message 1 of 4
(5,488 Views)

As annoying as it may be, I'll bet this is a driver issue.  Something old got stuck or corrupted or something like that.

I would try to force reinstall DAQmx one more time to see if that helps.  It works for me about 8 out of 10 times for stuff like this.

 

Full instructions here:

http://digital.ni.com/public.nsf/allkb/ADD22E807D5A12AD862579EC00760F79

 

-Jim

-Jim
CLD
0 Kudos
Message 2 of 4
(5,437 Views)

Dear JBizzle,

thank you for your help! I tried following your suggestions, however the NIDAQmx drivers come within a suite installer, which does not allow to use the /reinstall option. I found the specific NIDAQmx subfolder (there are actually 3: NIDAQmx, NIDAQmx_Config, NIDAQmx_Core) but there is no .exe, only .msi installers which, again, do not allow for /reinstall option. What is the procedure you usually follow?

I also tried to update the NI MAX to version 5.6 (via the NI System Configuration installer) but this did not solve the issue.

 

Best,

Francesco

0 Kudos
Message 3 of 4
(5,412 Views)
Solution
Accepted by f.clemente

The error was finally solved by uninstalling NI MAX and LabView and then reinstalling all the required software. In particular, the configuration that worked was:

 

- NI MAX 5.1 (includes NI-DAQmx 9.5.1)

- LabView 8.6

- NI-488.2 2.6 (includes NI VISA 4.4.1)

 

the last one was needed in order to connect to another acquisition device. With the above setup, the DAQ assistant worked and generated a task, but when the program was launched, the task was not able to recognise the correct device (device name was an empty string). Thus I converted it to a NI-DAQmx task, and now it works. (Don't really know if this quick passage would have been a good workaround from the beginning.)

0 Kudos
Message 4 of 4
(5,312 Views)