11-20-2011 07:58 PM - edited 11-20-2011 08:05 PM
I've heard back from the developer, and they have a wrapper DLL which has simple C function exports. (Its KMviaVB.dll in the last attachment). I was able to import it, and I'm going to see if it works.
edit: still get the same error "LabVIEW: An exception occurred within the external code called by a Call Library Function Node. The exception might have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW." On monday I'll reboot my machine and see if it goes away.
11-21-2011 12:48 AM
Well, in the ZIP archive is the source for the C++ DLL. There you can see that the Direct functions call directly through the USB IO driver, while the other functions call through a pipe to the separate IO server application. But those functions are all methods of the according (singleton) class so calling them from LabVIEW with the Call Library Node is definitely not a good idea. The wrapper they provide seems to be a Visual Basic DLL which is usually a good solution to be called from LabVIEW as VB has similar constraints in calling external code.
However one thing I wonder is the calling convention. You have used C calling convention in the CLN. Have you tried with srtdcall instead?