LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory problem then I import a DLL on LabView 2010

Solved!
Go to solution

Hello,

 

I have many problems with the importation of a .dll on labview.

The importation blocks at the third of fourth function, and sometimes a textbox appear (as you can see in attachement).

I tried with the import node, but it doesn't work (so, it's maybe that I don't know how to use it really).

 

I don't know really how to import the whole library, and I am really blocked.

 

There is the header and the dll in attachment too.

 

Thanks for your interest.

France
Download All
0 Kudos
Message 1 of 8
(3,745 Views)

No idea ?

I try to find a solution, but I am really blocked.

France
0 Kudos
Message 2 of 8
(3,732 Views)

Hello Nicolas,

 

I tried to import your dll/.h on my side with LabVIEW 2010.

I have the same behaviour except the memory issue. I am wondering if it wouldn't be a problem during the dll creation.

Do you have the possibility to re-build your dll or does it comes from a third-party?

If yes, maybe this document could be useful:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1OvCAI&l=en-US

 

 

For your memory problem, try this:

http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/enable_lrg_ad_aware/ 

 

Regards

Jean-Philippe C.
National Instruments France

0 Kudos
Message 3 of 8
(3,713 Views)

Hi,

 

I think the page on "how to extend the memory" will could be helpfuld. But i already read it, before, but there is only 1GB of RAM, the manipulation is useless, isn't it ?

 

It's impossible to rebuilt the dll, I think. It's from the company, but the it was coded by a developer who is no longer in the company, now.

And I think that they don't build another dll soon.

The problem you nust have is maybe because you need another dll, I bring them in attachment.

 

If you want, I posted on the Labview France thread (si jamais tu prefererais en parler en francais ; )

 

Thank you

France
0 Kudos
Message 4 of 8
(3,706 Views)

So, I did that it said on the memory page, and I still have the same problem.

I don't know wht to do more.

France
0 Kudos
Message 5 of 8
(3,699 Views)

 


@Nicolas.G wrote:

So, I did that it said on the memory page, and I still have the same problem.

I don't know wht to do more.


 

While that DLL API does not seem to contain anything that couldn't be done in LabVIEW without intermediate DLL, it is extensive, with quite a few functions and very complicated structure parameters. This would be even for me QUITE a bit of work and sweat to get a fully working LabVIEW interface for it, and I'm not surprised at all that the import library wizard can't really make it work without problems. I would likely have to create several trial and error versions myself for some of the API functions before it would likely work.

 

Without wanting to discourage you, unless you have LOTS of C programming knowledge, this is never going to work without errors. You may eventually get to a stage where you do not appear to get any errors anymore, but that will absolutely not mean that you are not still corrupting memory by misconfigured parameter types or misallocated memory buffers.

 

My advice is simple: Avoid this hardware by all means! It will cost you in the end more money, sweat, blood and sleepless nights than the most expensive alternative solution with ready made LabVIEW drivers ever could! And I'm not kidding here! Unless you want to take this as an opportunity to get VERY VERY intimate about C datatypes, C programming in general, and how C compilers arrange data structures in memory! Many of these things are not even known to good C programmers.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 6 of 8
(3,686 Views)

Ok, thank you for your honesty. It has the merit to be clear.

So, I am not a boss of C programming at all, and it's not the goal of my work.

 

But, if it is not possible to importe a driver from this DLL, how could I to build it ?

I am a bit wasted.

 

Thank you again for this explanation.

France
0 Kudos
Message 7 of 8
(3,670 Views)
Solution
Accepted by topic author Nicolas.G

I didn't say it's impossible, but it is very likely way above your head. You have probably two options:

 

1) Abandon this hardware and get some that has proper LabVIEW support.

2) Hire someone with a very good understanding about LabVIEW to C interfacing and let them create a VI library and interface DLL for you.

 

Good luck

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 8 of 8
(3,658 Views)