Difference b/w OnCurDataProcessed and OnCurDataCalculated

Forum Home Forums Understanding the Software Difference b/w OnCurDataProcessed and OnCurDataCalculated

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8638
    zzz
    Participant

    Hi Mik,

    Could you elaberate on the Difference between OnCurDataProcessing[1]/ed[2] and OnCurDataCalculating[3]/ed[4] ? They seem to be invoked by different threads. What is their difference in use?

    Thanks

    #8639
    Mikhail
    Moderator

    Hi,

    OnCurDataProcessing – when new data are coming from a controller.
    OnCurDataCalculating – when input channels of the calculated type are calculated.

    “ing” – before
    “ed” – after

    #8683
    zzz
    Participant

    Hi Mik,
    Thanks for info, so if I got you correctly the process is :

    
    OnCurDataProcessing       Real/Discret only
    |
    v
    Formula process           Real/Discret only
    |
    v
    OnCurDataProcessed        Real/Discret only
    |
    v
    OnCurDataCalculating      Calculate only
    |
    v
    Formula process           Calculate only
    |
    v
    OnCurDataCalculated       Calculate only
    

    instead of what I was confused like

    
    OnCurDataProcessing       Real/Discret
    |
    v
    OnCurDataProcessed        Real/Discret
    |
    v
    OnCurDataCalculating      Real/Discret/Calculate
    |
    v
    OnCurDataCalculated       Real/Discret/Calculate
    
    #8699
    Mikhail
    Moderator

    Hi,

    I would insert logging in the module you working on, and see the actual sequence.

    Server calculates formulas for “calculated” channels in the main thread, while data from Communicator are coming from another thread.

    • This reply was modified 2 years, 11 months ago by Mikhail.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.