LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

General Protection Fault Calling Labview 6 dll

I have created a Labview 6 dll that contains a text file reader and an visa instrument driver using serial communications. The dll works fine calling if from labview 5 and the text reader works fine in CVI. I get a protection fault in CVI when the call to the instrument driver is run. I am only transfering a single line of text in the instrument call, all other functions of the driver ar in the dll.
0 Kudos
Message 1 of 2
(2,611 Views)
Hello Jeffery,
I would recommend you verify that all the parameters are being passed correctly -- debug your CVI application or print them to standard out before calling the DLL. Also, check to make sure that the calling convention of the DLL and your CVI application match. You might also try calling the DLL from another programming environment (other than LabVIEW) to determine if the problem is specific to CVI or to the way you are calling the DLL. The Developer Zone is also a great resource, go to:
http://zone.ni.com/
Then click on RESOURCE LIBRARY >> LABVIEW >> CONNECTIVITY >> DLL INTEGRATION >> "Creating and Calling LabVIEW DLLs with Various Data Types from CVI"

If this does not help, you may consider contacting NI's email support at http://www.ni.com/ask

J
eremiah
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,611 Views)