Proficy Historian Client Access API
Proficy.Historian.ClientAccess.API Namespace / IData Interface / Subscribe Method
Tag subscription information.
Example



In This Topic
    Subscribe Method (IData)
    In This Topic
    Subscribe to data updates for a specific tag. Fires %% with details of the data update.
    Syntax
    'Declaration
     
    Sub Subscribe( _
       ByVal tag As DataSubscriptionInfo _
    ) 
    'Usage
     
    Dim instance As IData
    Dim tag As DataSubscriptionInfo
     
    instance.Subscribe(tag)
    void Subscribe( 
       DataSubscriptionInfo tag
    )
    void Subscribe( 
       DataSubscriptionInfo^ tag
    ) 

    Parameters

    tag
    Tag subscription information.
    Example
    // establish event handler
    connection.DataChangedEvent += new DataChangedHandler(DataChanged);
                  
    // request data subscriptions
    connection.IData.Subscribe(new DataSubscriptionInfo { Tagname = "Tag00001", MinimumElapsedMilliSeconds = 5000 });
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also