Simulink R2023b 中,当模型配置为从工作区加载输入时,布尔类型(boolean)的根级端口输入被错误识别为双精度类型(double),导致类型不匹配错误。
Afficher commentaires plus anciens
错误信息:数据类型无效。外部输入具有数据类型 'double',与端口设置的 'boolean' 类型不一致。
关键现象:
- •使用 PreLoadFcn 单独加载数据时可正确识别类型
- •但结合数据字典使用时,布尔类型被错误识别为 double 类型
- •工作区数据已验证为正确类型,但 Simulink 仍报告错误
Réponses (0)
Catégories
En savoir plus sur 多核处理器目标 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!