afclient
Description
The Asset Framework (AF) client object provides access to a PI AF server so that you can browse the AF database and retrieve attribute values.
Note
You must install the AF SDK library to connect to a PI AF server from MATLAB®. For more information, see AF SDK Overview.
Creation
Description
creates an AF client object and connects to the default database of the PI AF server
hosted at the specified afClientObj = afclient(serverName)serverName.
associates the client with a specific AF database, Windows® credentials or domain using optional name-value arguments.afClientObj = afclient(serverName,Name=Value)
Credential information is used only to connect to the PI AF server and is not retained in the AF client object properties.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
listDatabases | List available databases in connected AF server |
selectDatabase | Connect AF client to specified database |
getRootElements | Get root elements of AF database |
browseElements | Graphically browse element hierarchy and select attributes from Asset Framework database |
findElementByName | Find element by name in AF database |
findElementByPath | Find elements by path in AF server |
findElementByTemplate | Find elements by template on AF server |
findAttributeByPath | Find attributes by path in AF server |
Examples
Version History
Introduced in R2026a
