MATLAB: Is there a limit on how long the signal name can be in xPC Target 2.5 (R14)

apiblockcrashlabel;lengthnamesignalSimulink Real-Timexpc

Why does my client application (e.g., Using Visual Basic) crash when I use methods GetSignalName, GetSignalIdx, GetParamName, and GetParamIdx when dealing with very long block labels?

Best Answer

This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This problem has been fixed in xPC Target 2.6.1 (R14SP1). The byte allocation has been increased to 500 bytes. If you are using a previous version, read the following:
We have verified that there is a bug in xPC Target 2.5 (R14) in the way that it handles signal names longer than 200 characters. The above methods only allocate 200 bytes to deal with block labels. If your signal name contains more than 200 characters, this may cause a segmentation fault in your client code.
To work around this issue, ensure that your signal names do not exceed 200 bytes.