OPCDA.NET-UA
SetItemSamplingRate Method
See Also  Send Feedback
OpcDaNetUaOption.Net4 Assembly > UA_Wrapper Namespace > Group Class : SetItemSamplingRate Method

handles
Array of Server items handles.
RequestedSamplingRate
Requested Sampling period for the item in milliseconds. This also indicates the desired accuracy of the Cached Data.
RevisedSamplingRate
The server returns the value it will actually use for the SamplingRate in milliseconds, which may differ from the RequestedSamplingRate.
errors

Glossary Item Box

Sets the sampling rate on individual items. ( Available in OPC DA V3 servers only ).
This overrides the update rate of the group as far as collection from the underlying device is concerned. The update rate associated with individual items does not effect the callback period.

Syntax

Visual Basic (Declaration) 
Public Function SetItemSamplingRate( _
   ByVal handles() As Integer, _
   ByVal RequestedSamplingRate() As Integer, _
   ByRef RevisedSamplingRate As Integer(), _
   ByRef errors As Integer() _
) As Integer
C# 
public int SetItemSamplingRate( 
   int[] handles,
   int[] RequestedSamplingRate,
   out int[] RevisedSamplingRate,
   out int[] errors
)

Parameters

handles
Array of Server items handles.
RequestedSamplingRate
Requested Sampling period for the item in milliseconds. This also indicates the desired accuracy of the Cached Data.
RevisedSamplingRate
The server returns the value it will actually use for the SamplingRate in milliseconds, which may differ from the RequestedSamplingRate.
errors

Return Value

HRESULT success/error code

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.7.2

See Also

Copyright © 2020 Advosol Inc. All Rights Reserved.