Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
slref.pdf
Скачиваний:
39
Добавлен:
26.03.2015
Размер:
16.01 Mб
Скачать

Simulink® Checks

Check file for foreign characters

Check for characters that are incompatible with the current encoding

Description

Check for characters in the model file that cannot be represented in the current encoding. These can cause errors during simulation, and may be corrupted when saving the model.

Results and Recommended Actions

 

Condition

Recommended Action

 

 

Incompatible characters found

Change the current encoding

 

 

 

to the encoding specified

 

 

 

in the model file, using

 

 

 

slCharacterEncoding. To

 

 

 

change the current encoding

 

 

 

you need to close all models,

 

 

 

and this closes the Model

 

 

 

Advisor.

 

Tips

The Upgrade Advisor report shows the encoding you need, or you can retrieve the encoding from the model using the command:

get_param(modelname,'SavedCharacterEncoding')

Use slCharacterEncoding to change the encoding. This setting applies to the current MATLAB session, so if you restart MATLAB and want to open the same model, you will need to make the same change to the current encoding again.

For more information see:

slCharacterEncoding

“Models with Different Character Encodings”

“Saving Models with Different Character Encodings”

10-59

10 Model Advisor Checks

See Also

“Consult the Upgrade Advisor”.

“Model Upgrades”

10-60

10 Model Advisor Checks

10-61

10 Model Advisor Checks

10-62

10 Model Advisor Checks

10-63

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]