11-17-2008 04:28 PM
Hi Everyone,
I'm wondering if LabVIEW can interface with a COM DLL that doesn't have a specific ActiveX interface. It works within MATLAB using the following line of code:
h = actxserver('RPI_IOBoard.IOBoard')
However, when I try to use LabVIEW's "Automation Open" block, this COM component isn't listed in the type libraries dropdown (it is registered on this computer). When I browse to the actual DLL LabVIEW says, "The selected file is not a .NET assembly, type library, or automation executable." Am I going about this the wrong way?
Thanks!
11-19-2008 09:24 AM
Hello,
I believe you should be able to do what you are wanting to do. What version of LabVIEW do you have? You should be able to use the Call Library Function Node.
11-19-2008 09:41 AM
Hi Claire,
Thanks for the reply! I have LabVIEW version 8.5. I've tried the Call Library Function node but it's not working for me. When I type in my function I get the following error: "The function name specified for this node cannot be found in the library. Right-click the Call Library Function node and select Configure, then choose the correct function name." The DLL is marked as COM-accessible but doesn't show up in the ActiveX type list. It can be accessed through the .NET constructor.
Thanks!
11-20-2008 10:08 AM
11-21-2008 02:45 PM
Hi,
So I have been asking around and we cannot figure out how to do this. Could you attach the .dll to this post so we can try to call it in LabVIEW on our end?
11-23-2008 11:01 AM
Sure, here's the DLL (rename the extension to .dll from .txt). I'm not sure how this will react when it's not registered along with all its counterparts. You may want to run the full installer (this DLL will then be found in the installation directory): http://mobilestudio.rpi.edu/downloads/MobileStudioDesktop/Production/mobile_studio_desktop.exe
Thanks for your help!
-Yohan
11-24-2008 01:22 PM
11-24-2008 01:33 PM
>>You might want to take a look at the information on the mobile studio website, specifically the "Using the IOBoard in other programming environments"
Haha, yea, I'm actually the one who wrote the LabVIEW stuff in that section. It's working now under .NET but I think there may be advantages to the COM interface.
Thanks!
11-24-2008 02:27 PM
11-24-2008 04:13 PM