LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

General Protection fault on program termination

Hi,

Information:
CVI: 7.0
Measurement & Automation Explorer: 3.0
VISA Version: 3.0.0.32
Operating System: XP

Problem: I am communicating with an instrument over a GPIB interface. In order for the measurement explorer to detect the GPIB interface I had to include the NiVisaTulip.dll under Tools -> NI VISA -> VISA Options -> passports.

After I included this dll I could use the measurement explorer to communicate with the device, but I started getting a general protection fault at the end of my program.

I ran one of the demo programs that came with CVI and it created a general protection fault.
NIvisa\Examples\C\Gpib\AsyncIO_CVI

Now if I go back into the measurement explorer and remove the NiVisaTulip.dll from the passport list I no longer get a general protection fault, but the GPIB interfaces are no longer listed.

Thanks.
0 Kudos
Message 1 of 2
(2,917 Views)
The general protection error is not enough for us to know what was wrong. The error message should mention which line did this error happen. You can set a break point at that location and find more info about error.

By using VisaTulip, that means you are using a Agilent/HP's GPIB interface. To use NI-VISA to communicate with your instrument, you need to install NI-VISA as the primary VISA and enable this VisaTulip to have support for Agilent's interface card. Make sure that you did not have Agilent VISA installed or included any Agilent VISA dlls in your CVI project.

If you are interested in more info for NI-VISA and Agilent-VISA, check the KB below:

http://digital.ni.com/public.nsf/websearch/3B3626D9C1F999218625694200791AD7?OpenDocument
0 Kudos
Message 2 of 2
(2,893 Views)