LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL wrapper in .NET for LabVIEW help needed

Hello all,

  I am in need of some assistance communicating with a DLL in LabVIEW.  It has been determined that the DLL cannot be called directly from LabVIEW's "call library function".  Due to this, I need to create a "wrapper" in VB .NET that allows me to call this DLL with VB as a middle-man.  I am having some trouble creating this wrapper in VB and am in need of some assistance in the following:


1. I need to "open" a connection to the DLL that is mainted via a communcation ID number
2. Using this communication ID number in future calls to the DLL, I call various functions
3. Once I am done calling various functions, I close the connection

Example call in VB module:
    'Declare Function Open Lib "MCom32.dll" Alias "_Open@8" (ByVal path As String, ByVal mode As Short) As Short
    'Declare Function Close Lib "MCom32.dll" Alias "_Close@4" (ByVal nCid As Short) As Short

I don't have a preference in how this is called in LabVIEW, but it is necessary that I use the VB "wrapper".  Any help with how to create this wrapper in VB .NET would be appreciated!
CLA, CTA
0 Kudos
Message 1 of 2
(2,739 Views)

Hi,

I can help you with the LabVIEW stuff, but you might have more luck with the wrapper help in a VB.NET forum.

I am curious as to why you are not able to call the .dll from LabVIEW. Let me know if I can be of any assistance in this regard.

Cheers,

Emilie Kopp | Applications Engineer | National Instruments

0 Kudos
Message 2 of 2
(2,714 Views)