No connection to OPC ua server. 'Error using asyncioimpl.Channel Failure to load the converter plug-in'

3 次查看(过去 30 天)
Hello
i want to connect to an OPC ua server. He gives me succesfully the server information with hostname and IP adress.
But if i want to connect to the server (for reading data) it gives me error messages with:
'Error using asyncioimpl.Channel
Failure to load the converter plug-inNo connectio.'
Here the full Matlab code i typed in:
% OPC ua Server verifizieren und Info einholen
sInfo = opcuaserverinfo('169.254.173.186')
sInfo =
OPC UA ServerInfo 'TcOpcUaServer@CX-433476':
Connection Information
Hostname: 'CX-433476'
Port: 4840
% als Client definieren und verbinden
uaClient = opcua('169.254.173.186',4840);
connect(uaClient);
Error using asyncioimpl.Channel
Failure to load the converter plug-in.
Error in asyncio.Channel (line 122)
obj.ChannelImpl = asyncioimpl.Channel(devicePluginPath,...
Error in opc.ua.Channel (line 19)
obj@asyncio.Channel(deviceName, converterName, varargin{:});
Error in opc.ua.Client/connect (line 472)
clnt.AsyncChannel = opc.ua.Channel(options, [Inf,0]);
>> uaClient = opcua('opc.tcp://169.254.173.186:4840');
connect(uaClient);
Error using opc.ua.Client (line 308)
Server URL must start with 'opc.tcp://hostname:port'.
Error in opcua (line 32)
uaObj = opc.ua.Client(varargin{:});
>> uaClient = opcua('opc.tcp://CX-433476:4840');
connect(uaClient);
Error using opc.ua.Client (line 308)
Server URL must start with 'opc.tcp://hostname:port'.
Error in opcua (line 32)
uaObj = opc.ua.Client(varargin{:});

回答(2 个)

Prashant Nirmal
Prashant Nirmal 2019-11-15
OPC UA functionality does not include support for Simulink. This has been clarified in the upcoming release documentation. Also, refer to the following link:
To use the OPC UA client functionality from Simulink call the MATLAB functions from Simulink. For example write a Level-2 MATLAB S-Function, or use an (Interpreted) MATLAB Function block.

Srinivasarao Kamala
Hi,
Try to make the connection "Trust", then it will work.

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by