Cicode Programming Reference > Cicode Function Categories > Tag Functions Introduction > SubscriptionGetAttribute

SubscriptionGetAttribute

Reads the specified attribute value of a subscribed tag. Similar to TagRead.

Note: This function has been superseded and may be deprecated in a future release. Please use the following functions: SubscriptionGetInfo, SubscriptionGetTimestamp, SubscriptionGetQuality, SubscriptionGetValue or SubscriptionGetTag as substitutions in new projects.

Syntax

SubscriptionGetAttribute(iHandle, sAttribute [, iOffset] )

iHandle

Integer handle of the subscription to read from.

sAttribute

Attribute of the tag to read. Supported Attributes are:

iOffset

Optional integer expressing the zero based index of an array attribute. This is only valid for the Value attribute. Default value is 0.

Return Value

String representation of the cached value for a subscribed tag. On error, an empty string and an error is set.

Related Functions

SubscriptionGetInfo, SubscriptionGetTimestamp, SubscriptionGetQuality, SubscriptionGetValue, SubscriptionGetTag

See Also

I/O Device Functions