4.4.4.11
UpdateRate
Description
(Read/Write) The fastest rate at which data change events may be fired. A slow process might
cause data changes to fire at less than this rate, but they will never exceed this rate. Rate is in
milliseconds. This property’s default depends on the value set in the OPCGroups Collection.
Assigning a value to this property is a “request” for a new update rate. The server may not support
that rate, so reading the property may result in a different rate (the server will use the closest rate it
does support).
Syntax UpdateRate
As
Long
Example
VB Syntax Example (getting the property):
Dim CurrentValue As Long
Set MyGroups = AnOPCServer.OPCGroups
Set OneGroup = MyGroups.ConnectPublicGroup ( “AnOPCGroupName” )
‘ some more code here
DefaultGroupUpdateRate = OneGroup.UpdateRate
VB Syntax Example (setting the property):
Set MyGroups = AnOPCServer.OPCGroups
Set OneGroup = MyGroups.ConnectPublicGroup ( “AnOPCGroupName” )
‘ some more code here
OneGroup.UpdateRate = 50
Do'stlaringiz bilan baham: |