LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with dll's

I'm having some problems calling a dll written by a company that makes a CAN bus pcmcia card that our company has been using for quite a while now. I have just started to write LabVIEW apps for this card so we can quickly build custom apps. I have written a set of vi wrappers for all the needed dll calls based on an example that the company has on their web site.

The problem I'm having is that any app I build, or even the example that they built, constantly crashes LabVIEW. If it doesn't completely crash, it generates errors like "Failure : "gnrclist.cpp", line 195" and "Error #3 : "memory.cpp", line 513".

The company, Softing inc., is looking into the problem. They say they have never had any problems with the example. The example was written
in LabVIEW 5, and I'm running 6.0.2. They were wondering if there is a difference in the way LabVIEW calls dll's between ver 5 and 6.

Does anybody have any ideas that might be helpful? I've tried running this a Toshiba Tecra 8100 running Win2000, the same laptop running Win98, and a Toshiba 460CDX running Win98 and get the problems. I get the same problems with the example written by Softing.

Thanks
Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 1 of 3
(2,917 Views)
I found that any parameters in the DLL different from simple scalars need extra attention.
I started out with LV 6 so I am not sure how the internal representations for arrays or clusters changed.
Just make sure your dll does not make any assumptions, that are no longer true.
Gabi
7.1 -- 2013
CLA
0 Kudos
Message 2 of 3
(2,917 Views)
Hi Ed,
you may want to take a look at this article "Passing a Variety of Data Types from DLL to LabVIEW" [http://zone.ni.com/devzone/explprog.nsf/webmain/9E21592A5F39238C862569880064D694?opendocument&node=DZ52048_US]
I had similar problems and this helped me.
Good luck!
p.s.: if you can send me [labviewer@yahoo.com] that dll an a VI, I'll take a look on it
0 Kudos
Message 3 of 3
(2,917 Views)