| OPC Toolbox™ | ![]() |
Val = get(Obj,'PropName')
get(Obj)
Val = get(Obj)
Val = get(Obj,'PropName') returns the value Val of the property specified by PropName for the OPC Toolbox object Obj.
If PropName is a cell array of strings containing property names, then get will return a 1-by-N cell array of values, where N is the length of PropName. If Obj is a vector of toolbox objects, then Val will be an M-by-N cell array of property values where M is equal to the length of Obj and N is equal to the number of properties requested.
get(Obj) displays all property names and their current values for the toolbox object Obj.
Val = get(Obj) returns a structure, Val, where each field name is the name of a property of Obj containing the value of that property. If Obj is an array of toolbox objects, Val will be an M-by-1 structure array.
This example obtains the value of the Status and Group properties of an opcda object, and then displays all of the properties of the object.
da = opcda('localhost','Dummy.Server');
get(da, {'Status','Group'})
out = get(da,'Status')
get(da)![]() | genslwrite | getdata | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |