Clear Filters
Clear Filters

ssWriteRTWParamSettings not operating as expected

1 view (last 30 days)
With the following code:
char_T textArray[3][6] = {"ABC","XYZ","456"};
if ( !ssWriteRTWParamSettings(S, 2,
SSWRITE_VALUE_QSTR, "TestExample", "EasyStringToFind",
SSWRITE_VALUE_VECT_STR, "Values", textArray, 3
) )
{
return; //(error reporting will be handled by SL)
}
then I get this in the rtw file:
SFcnParamSettings {
TestExample "EasyStringToFind"
Values ABC
}
However I expect and want to get:
SFcnParamSettings {
TestExample "EasyStringToFind"
Values ["ABC" "XYZ" "456"]
}
So is this an incorrect use, a misunderstanding on my part or a bug?

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!