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