User`s guide
B Reported Limitations and Tips
• add(cc.type,'mytypedef','int')
To access type without the error, reference the individual elements of cc as
follows:
•
cc(1).type
• add(cc(2).type,'mytypedef','int')
Changing the represent Property of an Object
An object’s represent property is writable. You can change it to modify the
access format. For example, an object with
represent set to float can be
changed to
represent set to signed. After the change, the data is read as
a signed integer. Likewise, the data is written as a signed integer.
Here’s one example of changing the property value for represent. Create
a
ticcs object to s tart.
x = createobj(cc,'g_double')
NUMERIC Object stored in memory:
Symbol name : g_double
Address : [ 14648 0]
Data type : double
Word size : 64 bits
Address units per value : 8 au
Representation : float
Size : [ 1 ]
Total address units : 8 au
Array ordering : row-major
Endianness : little
read(x)
ans =
17.0010
set(x,'represent','signed')
read(x)
ans =
B-6