| OPC Toolbox™ | ![]() |
Out = propinfo(Obj)
Out = propinfo(Obj,'PropName')
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 string values or a range of valid values |
DefaultValue | Default value for the property |
ReadOnly | Condition under which a property is read-only:
|
Out = propinfo(Obj,'PropName') returns a structure array, Out, for the property specified by PropName. If PropName is a cell array of strings, a cell array of structures is returned for each property.
da = opcda('localhost','Dummy.Server');
allInfo = propinfo(da)
serverIDInfo = propinfo(da,'ServerID')![]() | peekdata | read | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |