05-09-2010 08:37 AM
Solved! Go to Solution.
05-09-2010 09:32 AM
05-09-2010 02:19 PM - edited 05-09-2010 02:20 PM
As smercurio has explained the .h file is not really necessary and usually not even enough to interface fully to a DLL. You do need a good documentation for the DLL API. Failing such a documentation you can sometimes get away with the .h file only but it usually means quite a bit of trial and error.
But without documentation and .h file you are really out of luck. The only way to interface to such a DLL is by reverse engineering at least one caller and sometimes also the DLL itself. But this is in several juridications outright illegal and in most western countries at least vastly limited.
05-10-2010 06:25 AM
Can I use it in LabVIEW application if...
" This is a .NET and DLL and - as such - can be referenced by any .NET language in a solution (C#, VB.NET, etc.). It was written using MS Visual Studio 2005. To include it in your project, add the DLL as a reference for the project in a solution that access it."
Why "function name" is disabled and no parameters in "Function Prototype"
I also tryed load dll via Tools->Import->Shared Library but it requrie .dll and .h files.
05-10-2010 09:09 AM
05-10-2010 09:51 AM
Waw. Can you hint or show me how could I do it?
I have no experance it .net
05-10-2010 09:58 AM
There are examples that ship with LabVIEW on using .NET. There is also information in the LabVIEW Help under the Fundamentals -> Windows Connectivity topic.
If it's just an assembly that you have (as opposed to a .NET control) then you will need to use the constructor node to create an instance of the class, and then use the property and method nodes to manipulate your object. The .NET assembly should have come with documentation on how to use it. You basically need to look for example programs that TI would have provided and then do similar .NET operations in LabVIEW.
05-10-2010 10:20 AM
05-11-2010 09:07 AM
Hi,
I begin build application, but when run it then error 1172 appears.
How I can define object?
"Error calling method USB_Adapter_Driver.USB_Adapter.setPullUps of NULL ObjectId, (System.ArgumentNullException: Key cannot be null.
Parameter name: key ) in HFE communication.vi"
05-11-2010 10:08 AM - edited 05-11-2010 10:10 AM
You need to open (instantiate) the .Net object before you can attempt to do anything on it. As it is now you try to operate on a NULL object meaning there is nothing to perform your methods on. Look at the .Net Constructor node.