I have recently upgraded to xPC Target 5.2 (R2012a) 64-bit from xPC Target 5.1 (R2011b) 32-bit and code that used to work for me is now producing an error. In the model, I have a uint8 vector (size 1019) in a named signal that is pulled into MATLAB using xpctarget.xpc.getsignal().
The documentation for this method shows that there is a limit of 1000 signal indices that can be accessed. As a consequence, I had previously divided this signal into two smaller vectors of sizes 792 and 227. This worked fine in extracting the data.
After upgrading to xPC Target 5.2 (R2012a), attempting to retrieve the 792-long vector fails with the following error message:
Error using getsignal (line 55) Message: Arithmetic operation resulted in an overflow. Source: xPCFramework HelpLink:
Retrieving the 227-long vector worked fine. Additionally, if I split the vector into 3 smaller chunks (sized 340, 340 and 339) as this also works without any issues.
Why does this occur only in the latest version? What defines any limitations on xpctarget.xpc.GETSIGNAL?
Best Answer