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{:});
0 件のコメント
回答 (2 件)
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.
0 件のコメント
Srinivasarao Kamala
2021 年 3 月 1 日
Hi,
Try to make the connection "Trust", then it will work.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!