MATLAB Link for Code Composer Studio Development Tools | ![]() ![]() |
Return the properties of an object
Syntax
get(cc,'propertyname') get(cc) v = get(cc,'propertyname') get(rx,'propertyname') get(rx) v = get(rx) get(objname,'propertyname') get(objname)
Description
get(cc,'propertyname')
returns the property value associated with propertyname
for link cc
.
get(cc)
returns all the properties and property values identified by the 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 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 displays the information on the screen.
get(objname,'propertyname')
returns the property value associated with propertyname
for objname
.
get(objname)
returns all the properties and property values identified by objname
.
v = get(objname)
returns a structure v
whose field names are the objname
property names and whose values are the current values of the corresponding properties. objname
must be an object in your MATLAB workspace. If you do not specify an output argument, MATLAB displays the information on the screen.
Examples
After you create a link for CCS IDE and RTDX, get
provides a way to review the properties of the link.
cc=ccsdsp CCSDSP Object: API version : 1.0 Processor type : C67 Processor name : CPU Running? : No Board number : 0 Processor number : 0 Default timeout : 10.00 secs RTDX channels : 0 get(cc) ans = app: [1x1 activex] dspboards: [1x1 activex] dspboard: [1x1 activex] dsptasks: [1x1 activex] dsptask: [1x1 activex] dspuser: [1x1 activex] rtdx: [1x1 rtdx] apiversion: [1 0] ccsappexe: 'D:\ticcs\cc\bin\cc_app.exe' boardnum: 0 procnum: 0 timeout: 10 page: 0 v=get(cc) v = app: [1x1 activex] dspboards: [1x1 activex] dspboard: [1x1 activex] dsptasks: [1x1 activex] dsptask: [1x1 activex] dspuser: [1x1 activex] rtdx: [1x1 rtdx] apiversion: [1 0] ccsappexe: 'D:\ticcs\cc\bin\cc_app.exe' boardnum: 0 procnum: 0 timeout: 10 page: 0 v.app ans = activex object: 1-by-1 v.rtdx RTDX channels : 0
RTDX links work in the same way. 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 Rtdx: [1x1 activex] RtdxChannel: {'' [] ''} procType: 103 timeout: 10 v=get(rx) v = numChannels: 0 Rtdx: [1x1 activex] RtdxChannel: {'' [] ''} procType: 103 timeout: 10 v.timeout ans = 10 v.procType ans = 103
See Also
![]() | flush | getmember | ![]() |