LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC client using DataSocket - Error 0x80040154

hi everyone,

i am setting up OPC comm between LabVIEW 2010 and SMA OPC Server. they are in the same machine. i have followed all DCOM settings there, and i can view and write data of SMA OPC through MatrikonOPC. 

then i start using DataSocket Select in LabVIEW. while i run the vi I can see a pop up window showing all running OPC servers in that PC. but while i double-click my SMA OPC server or other OPC servers, i always get this error -

 

error code - 0x80040154,

Class not registered

The server is not properly registered on the machine.

Try running <server>.exe /RegServer for an executable server, or RegSvr32.exe <server>.dll for an inproc server.

 

i tried following the instruction of last line, but never succeed. 

 

Looking for any kind of help. Thank you very much. 

0 Kudos
Message 1 of 4
(7,269 Views)

Hi, can anybody help on this? really appreciate it.

0 Kudos
Message 2 of 4
(7,246 Views)

Hi Daniel,

 

Thanks for submitting your question. This error occurs because your OPC server is not registered.

 

Yours might require a different method so it is worth contacting the manufacturer of your OPC server and ask them how you can register your server. Uninstalling and reinstalling the OPC software will sometimes take care of any registration issues.

 

I also thought you would find these links useful:

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2C7CAI&l=en-US

https://www.ni.com/en/support/documentation/supplemental/21/ni-opc-server-licensing.html

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0MPCAY&l=en-US

 

Hope this helps.

 

Thanks

Mahdieh G
Applications Engineer
National Instruments UK&Ireland
0 Kudos
Message 3 of 4
(7,233 Views)

Hi Mahdieh,

really thanks for great instruction. i noticed that the OPC is a 32-bit application and my computer is 64-bit, so i tried in a 32-bit computer with same version of LabVIEW 2010 and, guess what, it works fine!!!!!!!!!!!! 

 

0 Kudos
Message 4 of 4
(7,223 Views)