7 Replies Latest reply on Nov 16, 2015 11:33 AM by Marcos Vainer Loeff

    Connection to PI Collective using PI API - FAILS

    Salman@GE

      My C++ application was build using PI API and it used to work with PI Server.

      Recently, we tried using that application against PI Collective setup and it failed to connect.

      Does PI API support connecting to PI Collective Setup?

        • Re: Connection to PI Collective using PI API - FAILS
          Marcos Vainer Loeff

          Hello Mohammed,

           

          Using PI API, you can connect to a single PI Data Archive. So you should to establish a connection to the primary and another one to the secondary. However, the API connection will not recognize that the servers are members of the same collective.

           

          Does this answer your question? Are you able to connect to any member of the PI Data Archive Collective?

           

          If you really want to take advantage of all new features of the PI System programmatically, we recommend using PI AF SDK instead of PI API.

            • Re: Connection to PI Collective using PI API - FAILS
              Salman@GE

              My application is designed and capable to connect to only to One PI server at a time. We are trying to access it and see how it behaves with PI Collective setup. Usually we use to give the PI Server node name/IP address to connect. In the PI Collective case, we are trying to connect by using the PI Collective name. Is that the right way to approach? I just want to know if there a way around using PI API.

               

              I know it is easily achievable with PI AF SDK. But don't want to end up re-writing my application which is already build based on PI API.

               

              Please suggest your opinion on how to make my application work with PI collective using PI API.

                • Re: Connection to PI Collective using PI API - FAILS
                  pthivierge

                  Hello Mohamed,

                   

                  The PI API has no awareness of collectives, so if you want to stick to using the PI API you will have to implement the logic yourself.

                  You need to use the PI Server name(s) to connect.  Not the collective name.  We do have PI interfaces that use PI API, and sending data to a collective is managed by the PI Buffer Subsystem.

                   

                  If you can (and are willing to)  add Managed C++ to your project, you could use AFSDK with the C++ language as stated here.

                   

                  Hope this helps,

                    • Re: Connection to PI Collective using PI API - FAILS
                      Salman@GE

                      OK. Now it is clear that PI API doesn't support connecting to PI Collective system.

                       

                      Our project management team is reluctant in converting our project to Managed C++/.Net so I cannot go with AF SDK here for now.

                       

                      Can I Use PI SDK here, as part of my application already uses PI SDK and those calls are working good against PI Collective setup. I have to retrieve the data from few PI Points from PI Collective system. So can I use PI SDK to achieve the same?

                       

                      Please advice.