Simulink R2023b 中,当模型配置为从工​作区加载输入时,布尔​类型(boolean​)的根级端口输入被错​误识别为双精度类型(​double),导致​类型不匹配错误。

8 views (last 30 days)
5K93M
5K93M on 1 Sep 2025
错误信息​​:数据类型无效。外部输入具有数据类型 'double',与端口设置的 'boolean' 类型不一致。
关键现象​​:
  • 使用 PreLoadFcn 单独加载数据时可正确识别类型
  • 但结合数据字典使用时,布尔类型被错误识别为 double 类型
  • 工作区数据已验证为正确类型,但 Simulink 仍报告错误

Answers (0)

Categories

Find more on 多核处理器目标 in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!