Why am I getting "Potential conflicting usages of identifier "FALSE": a parameter and Language Keywords"

5 ビュー (過去 30 日間)
When trying to build a Simulink/Stateflow model in Matlab 2016b for use on a dSpace Microautobox I am getting the error "Potential conflicting usages of identifier 'FALSE': a parameter, and Language Keywords". I have used this same model and associated variables in version 2013a without any issues. Target file for the code generator is rti1401.tlc. Any insight would be appreciated.

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2021 年 10 月 5 日
編集済み: Fangjun Jiang 2021 年 10 月 5 日
You know 'false' is used by MATLAB as logical value for 0. I think 'FALSE' might be used by Stateflow or some customized definition as the same as 'false'. So don't use 'FALSE' as a variable name in your code or model.
>> false
ans =
logical
0
>> FALSE
Undefined function or variable 'FALSE'.

カテゴリ

Help Center および File ExchangeGenerate Tests についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by