ssWriteRTWParamSettings not operating as expected

1 次查看(过去 30 天)
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?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by