Products & Services Solutions Academia Support User Community Company

Learn more about OPC Toolbox   

serveritemprops - Property information for items in OPC server name space

Syntax

S = serveritemprops(DAObj,ItemID)
S = serveritemprops(DAObj,ItemID,PropID)

Description

S = serveritemprops(DAObj,ItemID) returns all property information for the OPC server items specified by ItemID. ItemID is a single, fully qualified ItemID, specified as a string. DAObj is an opcda object connected to the OPC server. S is a structure array with the following fields:

Field Name

Description

PropID

The property number

PropDescription

The property description

PropValue

The property value

The number of properties returned by the server may be different for different ItemIDs.

Item properties include the item's canonical data type, limits, description, current value, etc.

S = serveritemprops(DAObj,ItemID,PropID) returns property information for the property IDs contained in PropID. PropID is a vector of integers. If PropID contains IDs that do not exist for that property, a warning is issued and any remaining property information is returned.

For a complete list of Property IDs defined by the OPC Foundation, consult OPC Server Item Properties.

Examples

Find the properties of the Matrikon Simulation Server Random.Real4 tag:

da = opcda('localhost', 'Matrikon.OPC.Simulation');
connect(da);
p = serveritemprops(da, 'Random.Real4');
 

Read the first property to see the item's canonical data type:

p(1)
 

Read the third property to see the item's quality:

p(3)

See Also

serveritems

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS