piclient
Description
The PI client object provides access to an AVEVA® PI Data Archive so that you can search tags and read their data.
Creation
Syntax
Description
piClient = piclient(
creates a PI
client object piServer
)piClient
, and connects to the AVEVA PI Data Archive specified by piServer
.
piClient = piclient(
connects to the PI Data Archive using Windows® credentials specified by piServer
,Username="WinUserID",Password="WinPwd")WinUserID
and
WinPwd
. Credential information is used only to connect to the PI Data
Archive, and is not retained in the piClient
object properties.
piClient = piclient(
specifies the domain name, as a string, associated with the user credentials, if required
by the PI Data Archive.piServer
,Username="WinUserID",Password="WinPwd",Domain="WinDomain")
If an invalid argument is specified or the connection to the server cannot be established, the object is not created.
Note
You must install the AF SDK library to use this function. For more information, see AF SDK Overview.
Input Arguments
Name-Value Arguments
Properties
Object Functions
Examples
Version History
Introduced in R2022a