Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

propinfo

Property information for OPC Toolbox objects

Syntax

Out = propinfo(Obj)
Out = propinfo(Obj,'PropName')

Description

Out = propinfo(Obj) returns a structure array, Out, with field names given by the property names for Obj. Each property name in Out contains a structure with the fields shown below.

Field Name

Description

Type

Data type of the property. Possible values are 'any', 'callback', 'double', and 'string'.

Constraint

Type of constraint on the property value. Possible values are 'bounded', 'callback', 'enum', and 'none'.

ConstraintValue

List of valid character vector values or a range of valid values

DefaultValue

Default value for the property

ReadOnly

Condition under which a property is read-only:

  • 'always' — Property cannot be configured.

  • 'whileConnected' — Property cannot be configured while Status is set to 'connected'.

  • 'whileLogging' — Property cannot be configured while Logging is set to 'on'.

  • 'never' — Property can be configured at any time.

Out = propinfo(Obj,'PropName') returns a structure array, Out, for the property specified by PropName. If PropName is a cell array of character vectors, a cell array of structures is returned for each property.

Examples

da = opcda('localhost','Dummy.Server'); 
allInfo = propinfo(da)
serverIDInfo = propinfo(da,'ServerID')

See Also

Introduced before R2006a

Was this topic helpful?