Why do I get a "Check if hostname can be resolved" or "Not enough input arguments" error when connecting to an OPC UA server from MATLAB?
Show older comments
When establishing a connection to an OPC UA server, MATLAB shows the following error in R2022b and earlier:
uaclient = opcua('12.34.56.789')
Error using strncmpi
Not enough input arguments.
Error in opc.ua.Client (line 387)
if ~strncmpi(this(tI).Hostname, urlParts.Hostname, numel(this(tI).Hostname))
Error in opcua (line 46)
uaObj = opc.ua.Client(varargin{:});
In R2023a and newer:
Could not receive endpoint from URL <...>.
Check if hostname can be resolved.
Accepted Answer
More Answers (0)
Categories
Find more on Unified Architecture in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!