PI Login Functions

PI Login Functions provide functions to support multiple PI Server connectivity and provide user dialogs for common PI application tasks. These functions are not available on all platforms. Consult the release notes for availability. The PI-API contains the following PI Login Functions:

Function Description
pilg_addnewserver Add a server to the local list of servers
pilg_connectdlg View and edit connections dialog
pilg_disconnect Disconnect from all the connected servers
pilg_disconnectnode Disconnect from a particular server
pilg_getconnectedserver Get information for all currently connected servers
pilg_getdefserverinfo Get information for the default server
pilg_getnodeid Return the node id of a server name
pilg_getselectedtag Return tag info for all selected tags
pilg_getservername Return server name of a node id
pilg_login Log into a particular server - gain access to protected data
pilg_pointattdlg View point attributes dialog
pilg_registerapp Register the current application
pilg_registerhelp Register the help file and help topics
pilg_setservernode Set the current server context to the specified node
pilg_tagsearchdlg Tag search dialog
pilg_unregisterapp Unregister the current application

PI Login Functions offer an easy means of providing consistent user access to common PI features. The PI Login Connection Functions may be used as replacements to the Utility Connection Functions (piut_xxx). They monitor the connection process and pass the calls on to the corresponding Utility Functions. This allows the connections dialog to display a list of the user’s connections (regardless of the application) and to obviate the need to repeatedly enter the username and password when running multiple applications that log on to the same servers. These functions work in conjunction with the pilogin.ini file storing information about a user’s server connections, ports, login name, and the default server.

Enabling Operational Intelligence