| OPC Toolbox™ | ![]() |
Obj = opcda('Host','ServerID')
Obj = opcda('Host','ServerID','P1',V1,'P2',V2,...)
Obj = opcda('Host','ServerID') constructs an OPC data access object, Obj, for the host specified by Host and the OPC server ID specified by ServerID. When you construct Obj, its Status property is initially set to 'disconnected'. To communicate with the server, you must connect Obj to the server with the connect function.
Obj = opcda('Host','ServerID','P1',V1,'P2',V2,...) constructs an OPC data access object, Obj, for the host specified by Host and the OPC server ID specified by ServerID, with the specified property values. If an invalid property name or property value is specified, the object will not be created.
Note that the property name/property value pairs can be in any format supported by the set function, i.e., parameter-value string pairs, structures, and parameter-value cell array pairs.
At any time, you can view a complete listing of OPC Toolbox™ functions and properties with the opchelp function.
![]() | opccallback | opcfind | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |