Effacer les filtres
Effacer les filtres

ssWriteRTWParamSettings not operating as expected

1 vue (au cours des 30 derniers jours)
David
David le 17 Sep 2013
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?

Réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by