Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Finds and queries PI assets, tags, and historical data using MATLAB's Industrial Communication Toolbox.
23% 100%+77 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 5 of 22 without it.
A user explicitly provides a PI tag name 'PUMP101.FLOW'. Write the most direct MATLAB code to connect to PI Data Archive server 'PIServer01' and retrieve its current snapshot reading, avoiding unnecessary AF hierarchy browsing.
Uses piclient to connect directly to the PI Data Archive server.
3 of 3 safety checks passed
Connect to PI systems, locate assets, and read historical data using MATLAB's Industrial Communication Toolbox wrappers — not raw .NET SDK interop.
| Workflow | Minimum Release | Functions |
|---|---|---|
| A: PI Data Archive (tag lookup) | R2022a+ | piclient, tags, read (piclient) |
| B: PI Asset Framework (AF navigation) | R2026a+ | afclient, findElementByName, getAttributes, readHistory, etc. |
Choose the workflow based on what information the user provides:
| User provides | Workflow | Entry function |
|---|---|---|
A PI tag name (e.g., "GU1.ActivePower") | A: Direct Tag Lookup | piclient → tags |
| A tag description or partial tag name | A: Direct Tag Lookup | piclient → tags |
| An element name, template, or attribute in AF | B: AF Navigation | afclient |
| A request to browse/explore the asset hierarchy | B: AF Navigation | afclient |
If unclear, ask the user: "Do you have a specific PI tag name, or do you need to navigate the Asset Framework hierarchy?"
Next to this one in the catalogue, plus more from the same author.