CreateTagGroup method
Example code
Creates a new instance of the TagGroup collection and passes it back to the caller.
Syntax
Application.CreateTagGroup ([HomeAreaName], [UpdateRate])
where
Application – is the name of a FactoryTalk View SE Client Application object or an expression that evaluates to a FactoryTalk View SE Client Application object.
HomeAreaName – is the name of the home area of the display in which the TagGroup is to be created.
UpdateRate – is an optional parameter that specifies the update rate in milliseconds at which the change events for Value, Timestamp, or Quality are returned. Updates for the group will be no faster than this value but may be slower if the server cannot provide the data at the requested rate. The default update rate is 1000.
Remarks
If the tag group cannot be created, the method returns Nothing, and the error tagErrorUnabletoCreateGroup is raised. The Description property of the Error object might contain additional information about the cause of the failure.
The minimum value of the UpdateRate property is 250. If an attempt is made to write a value less than this to the property, a run-time error is raised and this message is displayed: Unable to set UpdateRate. Value is invalid.
If a negative value is written to the UpdateRate property, the error tagErrorUpdateRate is raised.