3 Replies Latest reply on Mar 29, 2012 10:55 PM by Ahmad Fattahi

    Datalink ini file


      I found piclient.ini in the PIPC directory and it looks like it has some initialization features that correspond to the Datalink Settings. I had two problems with this that I hope someone can show me the right path...


      1) It doesnt have a default value for "Disable Auto Task Pane", What is it? If it exists


      2) I changed the file settings but it didnt seem to effect the GUI check boxes? What am I doing wrong?





        • Re: Datalink ini file
          Ahmad Fattahi

          PI DataLink settings can be stored in two places:

          • piclient.ini file located in C:/Program Files/PIPC/DAT, and
          • OSIsoft.PIDataLink.xml file located in different places depending on the OS


          On Win XP:

          cd %UserProfile%\Local Settings\Application Data\OSIsoft,_Inc\PIDataLink

          On Vista/Windows 7:

          cd %UserProfile%\AppData\Local\OSIsoft,_Inc\PIDataLink



          The piclient.ini is what exists in the install kit and the settings in the piclient.ini file are used when PI DataLink is first installed.


          After a user changes the Settings in the Settings dialog, the OSIsoft.PIDataLink.xml automatically file gets created for each individual user. Thereafter, the settings in the OSIsoft.PIDataLink.xml file are what actually get used by DataLink for that user.


          For a fresh installation, the user can change the preferred settings in the piclient.ini and push the settings out to each machine. If any changes are made in the Settings dialog by the user, the xml file will get created and be used from that time forward.


          For an upgrade scenario, the xml file that already exists for each user will not automatically get upgraded with the settings from the piclient.ini file after the upgrade. There are two ways to push the settings out:

          1. You can delete the xml files for all users before the upgrade and the settings from the piclient.ini file will be used until the user makes changes in the Settings dialog and the xml file gets created.
          2. You can distribute a copy of the preferred OSIsoft.PIDataLink.xml to each user. This will not get overwritten during the upgrade.



          Note: The piclient.ini can only be used for settings that exist in both the Excel 2003 and Excel 2007 editions of DataLink. The “disableAutoReinit” setting does not exist in Excel 2003, so if the user wants to push out that setting to all installations, they will need to distribute the setting in the OSIsoft.PIDataLink.xml file to each user. The xml file is intended to be the new standard for storing DataLink settings in Excel 2007 and later.


          Some of the setting values are different between piclient.ini and the OSIsoft.PIDataLink.xml file listing.


          Here is a comparison of some of the settings in the two files:


          Piclient.ini example

          tformat=dd-mmm-yy hh:mm:ss



          OSIsoft.PIDataLink.xml example

          <?xml version="1.0" encoding="utf-8"?>    
          <Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">    
            <TFormat>dd-mmm-yy hh:mm:ss</TFormat>    
          If you need further information please contact OSIsoft regular Tech Support as they would be better equipped to answer this types of system administration questions.