I can connect using network credentials and via a trust, but im needing to connect using a pi login i.e. piadmin
If so how? thanks in advance
AFSDK help file, Connecting to a PI Data Archive explains explicit connection.
Connecting to a PI Data Archive
// Connect using a specified credential.
NetworkCredential credential = new NetworkCredential("pidemo", String.Empty);
catch (Exception ex)
// Expected exception since credential needs a valid user name and password.
You can check the behavior with specific user.
For using explicit login, check following.
PI SMT > Security > Security Settings
Disable explicit login should be X
Though please remember that explicit login is poor security.
We don't recommend to use it anymore.
Ah excellent thank you,
I naively assumed network credentials was only for windows credentials
AFSDK can also use PI Trust. So you can use mapping, PI trust, explicid login.
Retrieving data ...