LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView access to third party .dll files?

I am trying to create a GUI interface to multiple software systems running on a windows 7 machine.  The objective is to have one LabView user interface that can control three different non LabView software systems running in the background.  Two of the programs have .dll files.  My goal was to use .dll files to interact with features of the non LabView software.  I have tried to bring one of the .dll files into labview but it was not successful.  

 

What do I need to ask for from the other software vendors that would allow me to access the .dll files?  Does it require a header file?  Do they have to give me permission to access features of the .dll?

0 Kudos
Message 1 of 7
(3,574 Views)

You just need to use 'call library function node'. You will need to know the input parameter format (contained in the header) to use a function.

0 Kudos
Message 2 of 7
(3,552 Views)

Can you be more specific than "it was not successful"? Did you use the DLL Import tool, or did you configure Call Library Function Node yourself? What error occurred? What didn't work?

 

Do you know if these DLLs are standard DLLs, or .NET assemblies? Both have the same .dll extension, but need to be treated differently. What does the documentation from the vendor tell you about these DLLs? Does the vendor support calling their software from another program? If so, they should provide information on the interface.

0 Kudos
Message 3 of 7
(3,537 Views)
All good questions and a very good place for me to start. I havent interfaced to dll's before using labview so im not sure the specific questions to ask the vendor.
0 Kudos
Message 4 of 7
(3,528 Views)

If you have the source code, you could do Tools --> Import --> Shared Library (.dll)... which will open up a wizard that will parse the source code for the function calls and set it up automatically, once you answer a few questions...

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 7
(3,512 Views)
The source code is not required for the wizard. I believe it parses the .h file.
0 Kudos
Message 6 of 7
(3,507 Views)

@Dennis_Knutson wrote:
The source code is not required for the wizard. I believe it parses the .h file.

Technically, you're right.  It's just that usually the .h code file (it's late) is included when you ask the software vendor for the sdk.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 7
(3,498 Views)