LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Renishaw DX10 and Labview

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

0 Kudos
Message 1 of 8
(4,154 Views)
What is your os?
0 Kudos
Message 2 of 8
(4,147 Views)
Windows XP Professional SP3
0 Kudos
Message 3 of 8
(4,143 Views)

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.

 

0 Kudos
Message 4 of 8
(4,135 Views)

Whilst I investigate this further, here are some interesting KBs:

KB 1

 

KB 2

 

All this seems to indicate is that we have to track down what causes this internal .net error:

 

System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

 

 

 

 

Message 5 of 8
(4,097 Views)

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?

Message 6 of 8
(4,093 Views)

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

0 Kudos
Message 7 of 8
(4,085 Views)

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,

0 Kudos
Message 8 of 8
(4,050 Views)