OPCDA.NET Reference Manual
SetItemSamplingRate Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > OpcGroup 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 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.