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
Srinivasarao Kamala 2021년 3월 1일
Hi,
Try to make the connection "Trust", then it will work.

카테고리

Help CenterFile Exchange에서 Unified Architecture에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by