What problem does it solve?
It solves the problem of discovering available OPC UA servers and obtaining the correct discovery URLs, endpoints, and security-policy information when you need to connect from MATLAB without wasting time on incorrect assumptions.
Core Features & Use Cases
- LDS-based server discovery: Uses
opcuaserverinfo(hostname) to query the OPC UA Local Discovery Service and return all servers registered with that LDS host.
- Endpoint discovery via discovery URL: Uses
opcuaserverinfo(discoveryUrl) to discover a specific server when you know its opc.tcp://host:port/... discovery endpoint.
- Security and troubleshooting support: Helps inspect best message/channel security, supported authentication types, and diagnose empty discovery results by referencing LDS prerequisites and certificate trust issues.
- Use case: If your industrial network has multiple OPC UA servers and you need to quickly list them, filter by authentication type, and connect to the best candidate using
opcua(ServerInfo).
Quick Start
Ask the agent to discover and list available OPC UA servers on the local machine by calling opcuaserverinfo('localhost') and then show the Hostname, Port, best security settings, and endpoint counts.