Observer pattern

Forum Home Forums New Ideas Observer pattern

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3147
    Podolski
    Participant

    Hi,
    SCADA system usually requires that integraters query data repeatly. And timers are often used in this pattern.
    However, in some cases, a lot of software need more instant response rather than fixed time interval update.

    As far as I know, Rapidscada provides file access and TCP access to update data. Perhaps it is more convenient to develop Modules (or shipped in server) which implements observer pattern. It will help a lot for real-time applications.

    FYI,
    Reactivex is a a framework implements observer pattern.

    #3150
    Mikhail
    Moderator

    Hi,
    Could you describe an example? Do you mean something like SNMP traps?

    #3159
    Podolski
    Participant

    Hi,
    I don’t know SNMP traps. I read some articles about the tech, and I think the idea is the same.

    Observer pattern is also name publish-subscribe pattern. Subscribers can register themselves to the publisher. When publisher gets an update/modification, it will notify all the subscribers to update the status.

    Sounds like delegate in C#.

    #3163
    Mikhail
    Moderator

    This is generic. This approach may be included in Rapid SCADA for different tasks

    #3164
    Podolski
    Participant

    Do you mean I should implement it on my own server module? Or particularly in driver?

    #3178
    Mikhail
    Moderator

    Depends on the task. What task are you solving?

    #3194
    Podolski
    Participant

    I am trying to build a WPF based UI for a system. MVVM is my preferred option. It is not so elegant to leverage the tech by polling infos constantly in my opinion.

    #3207
    Mikhail
    Moderator

    It would be great. Please notify me about results.
    I suppose, you should create a module for SCADA-Server that provides API with such pattern. Also you could use OPC UA for this purpose. The module should be OPC UA server and your app is OPC UA client.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.