get - Access object properties

Syntax

get(cc,'propertyname')
v = get(cc,'propertyname')
get(rx,'propertyname')
get(rx)
v = get(rx)
get(objname,'propertyname')

Description

get(cc,'propertyname') returns the property value associated with propertyname for link cc.

v = get(cc,'propertyname') returns a structure v whose field names are the link cc property names and whose values are the current values of the corresponding properties. cc must be a link. If you do not specify an output argument, MATLAB® software displays the information on the screen.

get(rx,'propertyname') returns the property value associated with propertyname for link rx.

get(rx) returns all the properties and property values identified by the link rx.

v = get(rx) returns a structure v whose field names are the link rx property names and whose values are the current values of the corresponding properties. rx must be a link. If you do not specify an output argument, MATLAB software displays the information on the screen.

get(objname,'propertyname') returns the property value associated with propertyname for objname.

Examples

After you create a connection for CCS IDE and RTDX™, get provides a way to review the properties of the connection.

cc=ticcs

TICCS object:
  Processor type   : C67
  Processor name   : CPU
  Running?         : No
  Board number     : 0
  Processor number : 0
  Default timeout  : 10.00 secs

  RTDX channels    : 0

  RTDX channels    : 0

RTDX links work slightly differently—they have more syntaxes available. Create an alias rx to the RTDX portion of cc, then use the alias with get:

rx=cc.rtdx

  RTDX channels    : 0

get(rx)

ans = 

    numChannels: 0
    RtdxChannel: {''  []  ''}
        timeout: 10

v=get(rx)

v = 

    numChannels: 0
    RtdxChannel: {''  []  ''}
        timeout: 10
v.timeout

ans =

    10

See Also

set

  


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