getServerStatus
Status of OPC UA server
Syntax
sstat = getServerStatus(UaClient)
Description
sstat = getServerStatus(UaClient)
retrieves the status of the OPC UA server connected to UaClient
.
UaClient
must be a scalar connected OPC UA client, not a
vector of clients.
sstat
is returned as a structure containing the following
fields:
Field name | Description |
---|---|
StartTime | Time the server started (MATLAB datetime) |
CurrentTime | Current time on the server (MATLAB datetime) |
State | State of the server (character vector) |
BuildInfo | Structure describing the build information for the server,
including ManufacturerName ,
ProductName , and
SoftwareVersion |
SecondsTillShutdown | If the server is shutting down, how long until shutdown occurs |
ShutdownReason | Reason for the server shutdown, or an empty character vector |
Examples
Connect an OPC UA client and retrieve the status of its server.
s = opcuaserverinfo('localhost');
UaClient = opcua(s);
connect(UaClient);
sstat = getServerStatus(UaClient)
sstat = StartTime: 10-Jun-2015 16:39:17 CurrentTime: 10-Jun-2015 16:55:00 State: 'Running' BuildInfo: [1x1 struct] SecondsTillShutdown: 0 ShutdownReason: ''
Version History
Introduced in R2015b