When I create an object for an unsigned char in my program, why do I get a STRING/ RSTRING class object as a 'signed char'?
1 view (last 30 days)
Show older comments
I am using a C6000 series board.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
To work around this issue, you can convert the object to 'unsigned'.
The following example shows how to do this:
In CCS, if you have the following:
unsigned char ScalarVal = 4;
and you create a link for it in MATLAB:
obj = createobj
(CCS_Obj,'ScalarVal') % Note: obj.represent='signed'
You can then convert the object to 'unsigned char' by executing the following command:
convert(obj,'signed char') % Note: obj.represent='unsigned'
0 Comments
More Answers (0)
See Also
Categories
Find more on System Composer in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!