11-30-2010 10:10 AM
I am looking to use a Visual Basic DLL in LabVIEW and ran into problems with the call library node. I believe I complied as a COM DLL but saw several articles showing how to use a Visual Basic Active X DLL in LabVIEW. I may be able to create ActiveX DLL however all the examples I found appear to be written in LV 5.0.1 and will not open in my LabVIEW 2009. Is there any more recent examples or could someone open these examples and save them in a newer version of LabVIEW that 2009 could work with?
11-30-2010 10:44 AM
Are you referring to the old Visual Basic, or the new Visual Basic .NET? The old Visual Basic did not create true DLLs. It created ActiveX DLLs. This means you'd use the ActiveX functions in LabVIEW to use the DLL, not the CLFN. If it's the new Visual Basic .NET then you'd have a .NET assembly, in which case you'd use the .NET functions.
11-30-2010 11:16 AM
We are using VisualBasic .NET however we were building the DLL as a COM DLL, not a .NET DLL. The reason for this is we use this DLL with Excel and it seems that Excel can not commuincate with a .NET DLL. We couldn't figure out how to make LabVIEW work with the COM DLL so we recompiled as a .NET DLL and have it working now. Would be nice to know if there is a way to make LabVIEW work with the COM DLL so we have just one version of the DLL to maintain on all our systems.