MATLAB Answers

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

조회 수: 1(최근 30일)
Hamdi Koese
Hamdi Koese 29 Jul 2019
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

로그인 to comment.

답변 수 (1)

Prashant Nirmal
Prashant Nirmal 15 Nov 2019
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

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by