09-15-2009 07:53 AM
Hi,
I'm using a USB Renishaw DX10 to take enviromental factors into labview. Im using the following library/s.
DX10SDKADAPTORLib.dl
interop.DX10SDKADAPTORLib.dll
Everything works fine when I run the vi in the Labview Development enviroment, when i build and application, this also works fine on the computers where I have the Labview Development enviroment installed. However when I create and installer for use on another computer the information from the DX10 cannot be retrieved. I have added the following as additional installers:
NI Labview Run-Time Engine 8.5.1
NI USI 1.5.0
NI-RIO 2.4.0
Any Ideas?
Thanks,
Mark
09-15-2009 08:01 AM
09-15-2009 08:07 AM
09-15-2009 08:25 AM
The error message im receiving is:
1172
Error calling method DX10SDKADAPTORLib.DX10AdaptorClass.Connect of ObjectId handle: 0x8DA117C for obj 0x1205DF3[DX10SDKADAPTORLib.DX10AdaptorClass] in domain [LabVIEW Domain for Run] and thread 2804, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception: System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
) in Untitled 2
I get the same error message if I disconnect the DX10 from the USB port on the PC's that it works with. The DX10 drivers are installed on all the PC's im trying to get this working on and it shows up in the Device Manager. Also I have registered the dll file using regsvr32.
09-16-2009 05:46 AM
09-16-2009 05:55 AM
A few things to try:
Are you registering the library while logged onto the computer as an administrator?
Are there multiple copies of the DLL on the PC- could you be calling the wrong one?
Does the error still occur if you:
1. Unregister and re-register the DLL? After you restart the machine?
2. Repair all drivers related to the device?
09-16-2009 07:23 AM
Ok,
I have now registered the dll file as admin and no different. I have also made sure there is just the one copy of the dll file on the computer and reinstalled the DX10 drivers and still no luck. Im really struggling to see where the problem lies here.
Any more help would be much appriciated
09-17-2009 10:53 AM
Is the DLL in WINDOWS\SYSTEM32\ ? If not, could you copy it into that directory and re-register. ("regsvr32 DX10SDKADAPTORLib.dll")
Google also told me this, I'm not totally clear if it applies to you:
"It's not enough to have the .NET wrapper of a COM object you must also have the COM object files themselves and they must be registered and working."
Its not a LabVIEW error, its a general .net error so it may be worth your while looking on some .net forums.
What are the differences between your development machine (where it works) and your deployment machine (where it doesn't work)??
I hope this helps and you get to the root of the problem,