04-27-2012 08:54 AM
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.
04-30-2012 10:48 AM
Hi, can anybody help on this? really appreciate it.
05-01-2012
06:14 AM
- last edited on
07-18-2025
09:26 AM
by
Content Cleaner
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
05-04-2012 11:33 AM
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!!!!!!!!!!!!