LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PE Micro linking Dll

I am having issues linking a DLL to LabVIEW I am thinking my error is because data types withing the .h file. I tried using the Import Shared Library and I am finding that none of the functions in the unit_hcs08.h will load again I am guessing that the function types are not being supported by LabVIEW.

 

any help with this would be great.

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 1 of 7
(3,345 Views)

Hi,
did you tried with ActiveX ?
best Regards,

V-F
0 Kudos
Message 2 of 7
(3,328 Views)

Yes I tried both ActiveX and .Net. and a pop up came up and said the the Library I had selected was not .net or ActiveX

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 3 of 7
(3,315 Views)

Hey Harold,

 

What sort of behavior are you seeing when you try to use the Import Shared Library Wizard? Is it throwing an error? Does the .dll freeze when trying to parse the header file? If so this document may be helpful.

 

http://digital.ni.com/public.nsf/allkb/9659956BEF356CBA8625793300548A71?OpenDocument

 

Regards,

Leah

0 Kudos
Message 4 of 7
(3,297 Views)

it does not freeze or anything just none of the function in that header get put in a library. the Import Shared Library Wizard says that 0 of my functions have been added.

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 5 of 7
(3,291 Views)

Harold,

 

It is very possible that LabVIEW doesn't know the data types in the header file. Generally, if your functions contain complex data types, we recommend calling the dll using a Call Library Function Node. 

 

There is a very helpful example in the Labview Example finder that explains how to handle several different data types to be used with the Call Library Function Node. The example is named Call DLL.vi. Refer to this example when dealing with complex data types such as arrays or structs. To Find this example go to the LabVIEW Example Finder (Help»Find Examples) and select the Directory Structure radio button. In the directories list, select dll and then data passing then Call Native Code.llb. The Call DLL.vi example is under that directory.

 

Regards,

Leah

Message 6 of 7
(3,281 Views)

That is exactally what I thought the problem was I just created the functions with the Call Library Function Node. thanks for the help though

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 7 of 7
(3,275 Views)