04-30-2014 02:55 AM
Someone has succeded doing this before:
http://forums.ni.com/t5/LabVIEW/Invalid-net-Constructor-in-Labview-7-1-1/m-p/2831740#M827693
Please provide help!
Thanks in advance!
Regards!
05-01-2014 01:15 PM
I'm not familiar with this DLL. What error do you get?
05-01-2014 03:38 PM
Here is the link for the dll:
http://www.microchip.com/wwwproducts/Devices.aspx?product=MCP2210
I used a constructor node and pointed it to the MCP2210DLL; I could select either DEVIO or DLLCONSTANTS. For the first the error code is:The constructor selected in the constructor node is invalid or no constructor has been selected. Double-click on the constructor node and select a constructor.
For the seccond, the error code:
Could not load file or assembly 'MCP2210DLL-M, Version=1.0.4854.24504, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. in Untitled 1
In LW12 the same error occurs when I point the dll for the constructor node.
Please kindly advise!
Regards!
05-05-2014 11:36 AM
Hi MirceaPop,
I'm seeing errors too. I'm not really sure how the person in the linked forum post got around it. Seems like it could be an issue with the DLL. Sorry!
05-05-2014 11:50 AM
Thanks!
05-06-2014 01:34 AM - edited 05-06-2014 01:47 AM
The first error might be because the object is static and not instantiable. The second is likely because you do not have all the dependencies installed such as some Visuual C runtime library. That should have been included with the installer for the DLL but you may want to check with tech support at Microchip about this.
Static objects have to be directly accessed without the use of a constructor. You simply place a method or property node on your diagram and select its class with the Browse button.
Note: I quick check of the MPC DLL version 1.1.1 currently on their website shows that it has a dependency on the Microsoft Visual C 9.0 x86 runtime library. that would be the runtime library that comes with Visual C 2008 C runtime library component for x86. Go and get the redistributable installer for that from the Microsoft side and install it and you might have more joy.
05-12-2014 02:51 PM
Thank you! It hasn't worked!
04-12-2016 05:47 AM
Hi, I am starting to use this device in LabVIEW too. I was wondering if you ever got the dll working correctly? I am waiting for the MCP2210 kit to arrive and i came accross this thread so i thought it was worth asking. I can call the unmanaged dll version using the Call Library Function node and it looks like it may work but the c++ datatypes may soon cause an issue. Im interested if you ever got the .NET version working?
Thanks,
Michcael.
04-12-2016 06:25 AM
04-12-2016 06:34 AM
Funny can't edit post here? Anyways I was wrong I wrote code to communicate with the DLL in Delphi (pascal) not Labview. Like I said it was awhile ago I did this. I remember now labview wouldn't work with the DLL so I wrote it in another language. Sorry if I got your hopes up.
Bryan