Azzera filtri
Azzera filtri

ssWriteRTWParamSettings not operating as expected

1 visualizzazione (ultimi 30 giorni)
David
David il 17 Set 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?

Risposte (0)

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by