4 Replies Latest reply on Jul 21, 2010 10:26 PM by SteveOD

    PI-ACE doesn't output to PI

    francois_ruel

      Hi!

       

      I'm using PI-System 2010 and PI-ACE 2010 available on vCampus.

       

      I created a job in VBStudio 2010, .Net Framework 3.5 because of the System.XML and the PI-ACE wizard

       

      The job imports an XML file from a device called the TED-5000, The Energy Detective for home power metering.

       

      When I debug or test the job, everything looks fine.

       

      The jobs ouput directly to two PI tags, No aliases for now.

       

      I created the points using the PI-ACE Wizard, so the PointSource for those points is like L:XML_Loader\TED5000

       

      The job is running, nothing looks bad in the message log and the tags are still at Pt Created...

       

      Any advices on where to start debugging?

       

      PI Point access to review?

       

      Thanks!

       

      Francois

        • Re: PI-ACE doesn't output to PI
          hanyong

          Hi Francois,

           

          Is the ACE Scheduler running on the same machine as the PI Server? Assuming you have trust configured for the ACE Scheduler on the PI server, you probably want to verify which user is ACE Scheduler trusted as and if the user has the appropriate privilege for Point Security and Data Security.

           

          Seems to me like it could be some unexpected error during runtime as well. Perhaps you can add debug messages into the ACE program, writing them into message log using LogPIACEMessage(MessageType, Message, FullACEContextPath). This function will write the message into message log on the ACE Scheduler.

           

          You can use mlUserMessage for MessageType and modify Debug Level in ACE Manager to include User Message. This way you can have additional messages to monitor the program execution in runtime, and turn off when you are done troubleshooting.

            • Re: PI-ACE doesn't output to PI
              francois_ruel

              I  will look for the logging functions.

               

              Meanwhile, I did s short test: I created a very simple job.

               

              I created the point using the wizard for a new job.

               

              There is the job:

              Imports OSIsoft.PI.ACE

              Public Class TestAce
                  Inherits PIACENetClassModule
                  Private TESTFR As PIACEPoint
                  '
                  '      Tag Name/VB Variable Name Correspondence Table
                  ' Tag Name                                VB Variable Name
                  ' ------------------------------------------------------------
                  ' TESTFR                                  TESTFR
                  '
                  Public Overrides Sub ACECalculations()
                      TESTFR.Value = 3
                  End Sub

                  Protected Overrides Sub InitializePIACEPoints()
                      TESTFR = GetPIACEPoint("TESTFR")
                  End Sub

                  '
                  ' User-written module dependent initialization code
                  '
                  Protected Overrides Sub ModuleDependentInitialization()
                  End Sub

                  '
                  ' User-written module dependent termination code
                  '
                  Protected Overrides Sub ModuleDependentTermination()
                  End Sub
              End Class

              PI-ACE running on same machine as the PI Server 2010. PI-ACE 2010 Beta.  The service is running under an admin user.  This user is define in the security mapping as part of the piadmins group.

               

              Thanks!

               

              Francois