List tags from OSIsoft PI server
returns a list of all tags available from the OSIsoft® PI that the client
tagList = tags(
piCient is connected to. A tag is used by
the PI system as an alias or shortcut to represent an asset attribute such as voltage,
current, temperature, etc. Some tag names are short, others might be long and descriptive or
include a unique ID.
Find Tags on an OSIsoft PI Server
Request a list of all tags from the server.
tagList = tags(piClient);
Request a list of all tags from the server containing a matching string.
tagList = tags(piClient,"*pressure*");
piClient — Client connected to OSIsoft PI server
Client connected to OSIsoft PI server, specified as an
icomm.pi.Client object. You
create the object with the
piClient = piclient(_)
tagName — Tag name to match on
string | char
Tag name to match on, specified as a string or character vector. You can use the
* character to perform partial matching. For example:
"tagName" matches only the exact name tagName. "tagName*" matches tags that start with tagName. "*tagName*" matches tags containing tagName anywhere in their name.
tagList — List of tags from OSIsoft PI server
List of tags from OSIsoft PI server, returned as an N-by-1 table of strings with one tag per row.
Introduced in R2022a