Main Content

findDescription

Locate OPC HDA servers using server description

Description

ind = findDescription(serverInfoObj,descStr) returns the indices of the OPC HDA server information objects specified in serverInfoObj, whose Description property starts with descStr.

example

Examples

collapse all

Locate all servers on the local host whose the description starts with the phrase 'Matrikon'.

siObj = opchdaserverinfo('localhost');
ind = findDescription(siObj,'Matrikon');
siMatrikon = siObj(ind)
siMatrikon = 

OPC HDA Server Information object:
                 Host: localhost
             ServerID: Matrikon.OPC.Simulation.1
          Description: MatrikonOPC Server for Simulation and Testing
     HDASpecification: HDA1

Input Arguments

collapse all

Server information, specified as an array of OPC HDA server information objects. You can index into the array to access individual server properties.

Starting phrase of the server description, specified as a string or character vector.

Output Arguments

collapse all

Indices of server information objects whose server description property starts with the phrase specified in descStr.

Version History

Introduced before R2006a

See Also

Functions