Skip to main content
Version: 8.1

system.opchda.getAttributes

This function is used in Python Scripting.

Description

Queries the given server for the item attributes that are available with system.opchda.readAttributes().

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.opchda.getAttributes(serverName)

Parameters

TypeParameterDescription
StringserverNameThe name of the defined OPC-HDA server to query.

Returns

List[AttributeInfo] - A list of AttributeInfo objects. See the AttributeInfo Methods panel for a listing of available methods.

Scope

Gateway, Vision Client, Perspective Session

AttributeInfo Methods

MethodDescriptionReturn Type
getId()Returns the ID of the attribute.Integer
getName()Returns the name of the attribute.String
getDesc()Returns the description of the attribute.String
getType()Returns the data type of the attribute.Datatype

Code Examples

Code Snippet
# This example gets the description of a Matrikon OPC HDA explorer
# Declare a OPC HDA variable using the system function and prints out the results
opcHda = system.opchda.getAttributes('Matrikon HDA')
print opcHda

# Use the getDesc() method to get the description of the attribute and print out the result
getDesc = hda[1].getDesc()
print getDesc

Keywords

system opchda getAttributes, opchda.getAttributes