opchdaserverinfo
Query host for installed HDA servers
Description
S = opchdaserverinfo('HostName')
queries the host named
HostName
for the OPC HDA servers installed on that host.
'HostName'
can be a host name, or IP address, specified as a
character vector or string.
S
is returned as a vector of OPC HDA ServerInfo objects,
containing the following read-only properties.
Property Name | Description |
---|---|
Host | The host name passed to getServerInfo |
ServerID | The programmatic Server ID to use when constructing an HDA Client object associated with the server |
Description | A text description of the server |
HDASpecification | A character vector denoting the HDA specification supported.
Currently, only 'HDA1' is returned in this
property. |
Using the ServerInfo
objects in S
, you can
find a particular server based on the Description
property using
, or you can construct a
client by passing the relevant element of findDescription
(S,'StartText')S
to the opchda
function.
Examples
Find a list of HDA servers on the local host.
sInfo = opchdaserverinfo('localhost');
Locate the specific server with a description containing the character vector
'Matrikon'
.
mIndex = findDescription(sInfo,'Matrikon')
Construct an OPC HDA client for that server.
hdaClient = opchda(sInfo(mIndex))
Version History
Introduced in R2014a