LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

General Protection Fault using PCI 6031E in CVI 8.1.1

I am using a PCI 6031E card, and trying to program it in CVI 8.1.1. The program gives a General Protection Fault error with any DAQmx I/O control function I use, for ex,

NIDAQmx_NewDeviceCtrl (panelHandle, PANEL_DEVICE, 0);

(Attached error popup image)

This problem is only on one machine. But
I can communicate with the card using NI-MAX. The same program works fine on other machines.

Tried repairing CVI and DAQmx 8.6.  It still doesn't work. Smiley Sad

What do I do? Do I need to reinstall CVI and all my drivers again? Smiley Sad Is there a simpler solution than that?

thanx a ton
Subhash
0 Kudos
Message 1 of 5
(3,417 Views)
Hello Subhash,

I'm sorry you are having a problem.
If you can make it happen again, could you please post the list of loaded modules?
You can do so by performing the following steps:
- put a breakpoint on the function that causes the GPF
- when CVI hits the breakpoint, open the Modules window (from menu Windows >> Modules)
- right click in the list of modules and select Copy All Items
- paste the information into Notepad and save it as a TXT file
- attach it to your next post here

That will help us determine the location of the GPF for starters. Then we can take it from there.

Does the GPF happen with a different card in that affected computer or just with this 6031E?

Best regards
LDP
0 Kudos
Message 2 of 5
(3,400 Views)
LDP,
 
Thanks for the response.
 
I could not find the "modules" item under the 'Windows' menu. I presume, you meant, you were looking for the list of "loaded modules", which I found under the 'Run' menu. I have attached that list with my post.
 
I think the problem is more to do with some installation issue, rather than the card. Because, I can't run any of the MIO examples given by NI on my machine either. When I remove the card and run the program, using only simulated modules,  it still gives me an error.
 
But then, I uninstalled CVI and NI-DAQmx from my machine and then re-installed both of them. That still did not help Smiley Sad I can't think of what else the issue could be! Smiley Sad
 
Download All
0 Kudos
Message 3 of 5
(3,377 Views)
Hello Subhash,

sorry about the menu confusion. I am used to a different version of CVI where some of the menu items from Run have been moved to Window. But you found it alright, that's what matters.

Thank you for the list of modules, that helped.
If you wouldn't mind posting your email address, I can send you a debug DLL to test with.

Regards
LDP
0 Kudos
Message 4 of 5
(3,360 Views)
thanks a lot ldp
 
my mail id is subhas (dot) sumithra (at) honeywell (dot) com. pls send me the dbg dll
 
cheers
Subhash
0 Kudos
Message 5 of 5
(3,355 Views)