LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasocket OPC/Matrikon OPC

I have a datasocket based OPC client with datasocket open URL (the same as in the LabVIEW example). If I run the .vi on PC "A" and the client Matrikon OPC on PC "A", i find the variables and i can read them.

But when i tried to do the same with Matrikon OPC on a PC"B", i see the variables but when i tried to read them, the vi tells me the error 42.

 

I have no active firewalls and i can read the variables with Matrikon on the PC"B".

 

Does anyone have any tips on how to find and fix the problem?

0 Kudos
Message 1 of 4
(1,822 Views)

Hey, 

There is a good article related to the topic,  have you checked it? 

Also, the forum discussion as well.

There is a chance that you might need manually register a few DLLs , but at first I'll recommend checking the links I have shared.

Hope this will help!

0 Kudos
Message 2 of 4
(1,776 Views)

Hi,

 

Thanks for the reply but i've already checked the article. It's possibly the DCOM connection but i don't know how to check this...

I make my application (.exe) from this VI :

OPC.PNG

What do you mean by "You might need manually register a few dlls"?

 

 

Thanks

0 Kudos
Message 3 of 4
(1,767 Views)

Hey, 

 

For the DCOM, the best explanation, in my opinion, is this one. Also for NI you'll need to configure it, check this article

 

 

0 Kudos
Message 4 of 4
(1,752 Views)