4 Replies Latest reply on May 15, 2012 5:14 AM by RyanBrown

    Cog

    RyanBrown

      Hi All,

       

      Is there any documentation available about how to create a cog or perhaps an example?

       

      Thanks,

       

      Ryan

        • Re: Cog
          Ahmad Fattahi

          Ryan,

           

          Programmatic access to PI Coresight is fleshed out in this presentation and the "PI Coresight  web service sample" in vCampus Download Center (under Extras). Hope it helps.

            • Re: Cog
              Lonnie Bowling

              I was at the presentation and think that this is the best feature coresight has to offer us here at vCampus, I have not had a project that I have used it on yet, but look forward to the chance!

                • Re: Cog
                  RyanBrown

                  I've watched the presentation and have tried out some of the code for creating these displays. I agree that the Cog is quite an exciting feature and one that I could see being very useful.

                   

                  The presentation didn't go in depth talking about the components of the Cog though and guess I was looking for a document that described the elements that make it up.

                    • Re: Cog
                      RyanBrown

                      I managed to get the cog extracted from the downloaded example. I should be able to create what I want from looking at this.

                       

                      I've included the sample cog below for those that haven't seen it yet. Apologies for it not being included as formatted code but not having much luck inserting it like that

                       

                      Thanks,

                       

                      Ryan

                       

                      <COG Version="1.0" xmlns="http://xml.osisoft.com/context/cog">
                          <Databases Version="1.0">
                            <AF Id="PHL6400TRAVEL\Demo" Node="PHL6400TRAVEL" Db="Demo" />
                          </Databases>
                          <Datasources Version="1.0">
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Burner" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Burner" ElementPath="Houston\Cracking Process\Boiler-210" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Equipment State" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Equipment State" ElementPath="Houston\Cracking Process\Boiler-210" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Fuel" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Fuel" ElementPath="Houston\Cracking Process\Boiler-210" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Fuel Gas Flow" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Fuel Gas Flow" ElementPath="Houston\Cracking Process\Boiler-210" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Installation Date" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Installation Date" ElementPath="Houston\Cracking Process\Boiler-210" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Make-Up Water Flow" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Make-Up Water Flow" ElementPath="Houston\Cracking Process\Boiler-210" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Manufacturer" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Manufacturer" ElementPath="Houston\Cracking Process\Boiler-210" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Model" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Model" ElementPath="Houston\Cracking Process\Boiler-210" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Water" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Water" ElementPath="Houston\Cracking Process\Boiler-210" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Impeller Size" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Impeller Size" ElementPath="Houston\Cracking Process\Pump-214" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Installation Date" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Installation Date" ElementPath="Houston\Cracking Process\Pump-214" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Manufacturer" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Manufacturer" ElementPath="Houston\Cracking Process\Pump-214" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Model" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Model" ElementPath="Houston\Cracking Process\Pump-214" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Motor Amps" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Motor Amps" ElementPath="Houston\Cracking Process\Pump-214" />
                            </AFData>
                            <AFData Id="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Power" DbRef="PHL6400TRAVEL\Demo">
                              <AFAttribute Name="Power" ElementPath="Houston\Cracking Process\Pump-214" />
                            </AFData>
                          </Datasources>
                          <Symbols Version="1.0">
                            <Symbol Id="sym1">
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Burner" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Equipment State" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Fuel" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Fuel Gas Flow" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Installation Date" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Make-Up Water Flow" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Manufacturer" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Model" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Boiler-210|Water" />
                            </Symbol>
                            <Symbol Id="sym2">
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Impeller Size" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Installation Date" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Manufacturer" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Model" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Motor Amps" />
                              <Datasource Ref="\\PHL6400TRAVEL\Demo\Houston\Cracking Process\Pump-214|Power" />
                            </Symbol>
                          </Symbols>
                          <Groups Version="1.0" />
                          <Contexts Version="1.0">
                            <Range StartTime="*-8H" EndTime="*" />
                          </Contexts>
                        </COG>