i'm a new developer/user to pi system.
i'm looking for some code examples on VB.NET connecting on retrieving data tags from PI database.
the processbook version i'm using is 3.5.
kindly appreciate your support,
Welcome to the PI Community and thank-you for posting your question in the proper forum. The bad news is most of the examples are written in C#. Heck, there are probably more PI Web API examples using Python than there are VB.NET period. The worst news is that you cannot use .NET, be it C# or VB.NET, with ProcessBook VBA. It is possible for a very experienced .NET developer to write an add-in to VBA, but it is a more advanced task.
Rather than use ProcessBook VBA or any other VBA environment, which relies upon unmanaged Component Object Model and most likely PI SDK, I would suggest you write stand-alone .NET console, WinForm, or WPF applications with VB.NET and AF SDK. Decide if you want to write an Asset-based application using an AFDatabase or a Tag-based application using a PI Data Archive and PIPoint(s). Ask back here for help.
To show some VB.NET code, this post contains a function where a PIPoint object has already been set, which also means the PI Data Archive (or OSIsoft.AF.PI.PIServer) object has also been set.
Accessing PI Point attibutes using C#
And because there are lots of C# examples, you could help translate them on your own with:
CSharp Cheat Sheet for VB.NET Developers
Also the online AF SDK developers course here has links back to GitHub. There are VB.NET examples for that class in this GitHub repo.
Retrieving data ...